/* ==========================================================================
   Sri Yojana design layer (v4). Loaded LAST on every screen: public site, customer/partner area, admin.
   One page width, one spacing scale, one banner, one grid system, one motion language.
   Earlier files (app, portal, theme, market) keep component details; anything here wins.
   ========================================================================== */
:root {
  /* Layout */
  --sy-page: 1320px;                              /* content width on every public page, header and footer */
  --sy-gutter: clamp(16px, 3vw, 28px);            /* side padding; 16px on phones */
  --sy-gap: clamp(14px, 1.6vw, 22px);             /* gap between grid items */
  --sy-section-y: clamp(28px, 4.5vw, 64px);       /* vertical rhythm between sections */
  /* Spacing scale (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  /* Surfaces */
  --sy-page-bg: #F2F5FA;
  --sy-r-lg: 22px; --sy-r: 16px; --sy-r-sm: 12px;
  --sy-glow-amber: 0 10px 30px rgba(245, 130, 32, .30);
  --sy-band-grad: radial-gradient(120% 140% at 100% 0%, rgba(245, 130, 32, .32) 0, rgba(245, 130, 32, 0) 42%),
                  radial-gradient(80% 120% at 0% 110%, rgba(56, 119, 214, .35) 0, rgba(56, 119, 214, 0) 55%),
                  linear-gradient(120deg, #0B1F3F 0%, #0F2E5C 55%, #123B78 100%);
  /* Motion */
  --sy-dur: .6s;
  --sy-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Page ground and width ---------- */
.sy-public main, .sy-public .sy-soft, .sy-public .sy-mk-page-end { background: var(--sy-page-bg); }
.sy-public .container-xl { max-width: var(--sy-page) !important; padding-inline: var(--sy-gutter); }
.sy-public .sy-mk-header .container-xl, .sy-public .sy-mk-footer .container-xl { max-width: var(--sy-page) !important; }
.sy-public:not(.sy-home) main { padding-bottom: var(--sp-5); }

/* ---------- Type: one heading voice ---------- */
.sy-public main h1, .sy-public main h2, .sy-public .sy-section-head h2, .sy-admin-main h1, .sy-portal-main h1 {
  font-family: var(--sy-sans); font-weight: 800; letter-spacing: -.028em; color: var(--sy-navy);
}
.sy-public main h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.sy-public main h3 { font-weight: 800; letter-spacing: -.015em; }
/* Headings on dark surfaces (hero, dark feature tiles, banners) stay white whatever the generic heading rule says */
.sy-public main .sy-mk-hero h1, .sy-public main .sy-mk-hero h2, .sy-public main .sy-mk-hero h3,
.sy-public main .sy-feature-dark h1, .sy-public main .sy-feature-dark h2, .sy-public main .sy-feature-dark h3,
.sy-public main .sy-header-band h1, .sy-public main .sy-header-band h2, .sy-public main [data-surface="dark"] :is(h1, h2, h3),
.sy-public main .sy-auth-side :is(h1, h2, h3),
.sy-admin-main .sy-feature-dark :is(h1, h2, h3, b), .sy-admin-main .sy-header-band :is(h1, h2, h3), .sy-admin-main [data-surface="dark"] :is(h1, h2, h3) { color: #FFFFFF; }
.sy-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-5); }
.sy-section-head .sy-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.sy-section-head .sy-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--sy-amber); }

/* ---------- Page banner (partials/page_banner.php and every .sy-header-band) ---------- */
.sy-header-band {
  position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF;
  background: var(--sy-band-grad); border: 0;
  margin: var(--sp-4) auto 0; width: min(calc(100% - 2 * var(--sy-gutter)), calc(var(--sy-page) - 2 * var(--sy-gutter)));
  border-radius: var(--sy-r-lg); box-shadow: 0 18px 40px rgba(11, 31, 63, .18);
}
.sy-header-band::before, .sy-header-band::after { content: none; }
/* Compact by design: about 200-240px tall on desktop (title, one-line lead, one row of buttons + stat chips) */
.sy-header-band > .container-xl { max-width: none !important; padding: clamp(18px, 2.2vw, 30px) clamp(18px, 2.8vw, 40px) !important; position: relative; z-index: 1; }
.sy-header-band h1 { color: #FFFFFF !important; font-family: var(--sy-sans) !important; font-weight: 800 !important; letter-spacing: -.03em; font-size: clamp(1.5rem, 2.3vw, 2.15rem) !important; line-height: 1.15; margin: .25rem 0 0 !important; text-wrap: balance; max-width: 30ch; }
.sy-header-band p, .sy-band-lead { color: rgba(255, 255, 255, .82) !important; font-size: clamp(.92rem, 1vw, 1rem); max-width: 70ch; line-height: 1.55; margin: .45rem 0 0; }
.sy-header-band nav, .sy-header-band nav a { color: rgba(255, 255, 255, .72) !important; font-size: .78rem; text-decoration: none; }
.sy-header-band .sy-eyebrow, .sy-band-eyebrow { color: #FFB066 !important; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: .45rem; }
.sy-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sy-crumbs a:hover { color: #FFFFFF !important; text-decoration: underline; }
.sy-crumbs [aria-current] { color: rgba(255, 255, 255, .92); font-weight: 600; }

.sy-band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5); }
/* Buttons and stat chips share one row; they wrap underneath only when there is no room */
.sy-band-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
.sy-band-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sy-band-actions .btn { --bs-btn-padding-y: .5rem; min-height: 40px; font-size: .9rem; }
.sy-band-stats { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sy-band-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.sy-band-stats b { font-size: .95rem; font-weight: 800; color: #FFFFFF; line-height: 1.2; }
.sy-band-stats small { font-size: .74rem; color: rgba(255, 255, 255, .72); }

/* Decorative layer: dot grid fading in from the right, two slow floating glows */
.sy-band-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sy-band-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); }
.sy-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.sy-orb-a { width: 260px; height: 260px; right: -70px; top: -110px; background: radial-gradient(circle, rgba(245, 130, 32, .35), rgba(245, 130, 32, 0) 70%); animation: sy-float 14s ease-in-out infinite; }
.sy-orb-b { width: 200px; height: 200px; right: 22%; bottom: -120px; background: radial-gradient(circle, rgba(120, 170, 255, .28), rgba(120, 170, 255, 0) 70%); animation: sy-float 18s ease-in-out infinite reverse; }

/* Graphic on the right: glass disc with the page illustration, a dashed orbit and two chips */
.sy-band-art { position: relative; width: 170px; height: 140px; flex: none; }
.sy-band-ring { position: absolute; inset: 6px 14px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .25); animation: sy-spin 40s linear infinite; }
.sy-band-disc { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; transform: translate(-50%, -50%); border-radius: 32px; display: grid; place-items: center;
  background: linear-gradient(145deg, #FFFFFF, #EAF1FB); box-shadow: 0 22px 44px rgba(3, 12, 30, .35), inset 0 -4px 0 rgba(15, 58, 117, .08); animation: sy-bob 6s ease-in-out infinite; }
.sy-band-chip { position: absolute; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 10px 24px rgba(3, 12, 30, .3); }
.sy-band-chip-a { left: 4px; top: 18px; animation: sy-bob 7s ease-in-out infinite .6s; }
.sy-band-chip-b { right: 0; bottom: 14px; animation: sy-bob 8s ease-in-out infinite 1.2s; }
/* Inside the account area and admin the banner fills the content column; the slim variant drops the graphic */
.sy-portal-main .sy-header-band, .sy-admin-main .sy-header-band { width: 100%; margin: 0 0 var(--sy-gap); }
.sy-band-slim > .container-xl { padding: clamp(16px, 2.4vw, 26px) clamp(16px, 2.6vw, 30px) !important; }
.sy-band-slim h1 { font-size: clamp(1.3rem, 2.4vw, 1.85rem) !important; }
.sy-band-slim .sy-band-art { width: 120px; height: 104px; }
.sy-band-slim .sy-band-disc { width: 84px; height: 84px; border-radius: 24px; }
.sy-band-slim .sy-band-disc .sy-art { width: 52px; height: 52px; }
.sy-band-slim .sy-band-chip { display: none; }
@media (max-width: 767.98px) {
  .sy-band-in { grid-template-columns: minmax(0, 1fr); }
  .sy-band-art { display: none; }
  .sy-header-band { margin-top: var(--sp-3); width: calc(100% - 2 * 16px); border-radius: 18px; }
  .sy-header-band > .container-xl { padding: 20px 18px 22px !important; }
}

/* ---------- Grids ---------- */
.sy-grid { display: grid; gap: var(--sy-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.sy-grid-2, .sy-grid-3, .sy-grid-4 { display: grid; gap: var(--sy-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .sy-grid-2, .sy-grid-3, .sy-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sy-grid-3, .sy-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sy-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Bento: 12 columns on desktop, items choose a span; one column on phones */
.sy-bento { display: grid; gap: var(--sy-gap); grid-template-columns: minmax(0, 1fr); grid-auto-flow: dense; }
@media (min-width: 768px) {
  .sy-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sy-bento > * { grid-column: span 6; }
  .sy-bento > .span-3 { grid-column: span 3; } .sy-bento > .span-4 { grid-column: span 4; } .sy-bento > .span-5 { grid-column: span 5; }
  .sy-bento > .span-7 { grid-column: span 7; } .sy-bento > .span-8 { grid-column: span 8; } .sy-bento > .span-12 { grid-column: 1 / -1; }
  .sy-bento > .row-2 { grid-row: span 2; }
}
/* Main + side column layout (forms, details, calculators) */
.sy-layout { display: grid; gap: var(--sy-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .sy-layout { grid-template-columns: minmax(0, 1fr) 340px; } .sy-layout > .sy-sticky { position: sticky; top: 96px; } }
.sy-stack { display: flex; flex-direction: column; gap: var(--sy-gap); }

/* ---------- Sections ---------- */
.sy-section { padding-block: var(--sy-section-y); }
.sy-section + .sy-section { padding-top: 0; }
.sy-public main > section.container-xl.py-5:not(.sy-mk-page),
.sy-panel {
  background: #FFFFFF; border: 1px solid #E6EBF3; border-radius: var(--sy-r-lg); box-shadow: 0 2px 4px rgba(11, 31, 63, .03), 0 10px 30px rgba(11, 31, 63, .05);
}
.sy-public main > section.container-xl.py-5:not(.sy-mk-page) {
  margin: var(--sp-4) auto !important; padding: clamp(18px, 2.6vw, 32px) !important;
  width: min(calc(100% - 2 * var(--sy-gutter)), calc(var(--sy-page) - 2 * var(--sy-gutter))); max-width: none !important;
}
.sy-panel { padding: clamp(16px, 2.2vw, 28px); }
.sy-mk-page { padding-block: var(--sp-4) var(--sp-6); }
@media (max-width: 575.98px) {
  .sy-public main > section.container-xl.py-5:not(.sy-mk-page) { width: calc(100% - 32px); margin: var(--sp-3) auto !important; padding: 16px !important; border-radius: 18px; }
}

/* ---------- Cards ---------- */
.sy-card { border-radius: var(--sy-r); border-color: #E6EBF3; }
.sy-card-link, .sy-mk-panel a.sy-card, .sy-lift { transition: transform .35s var(--sy-ease-out), box-shadow .35s var(--sy-ease-out), border-color .25s; will-change: transform; }
.sy-card-link:hover, .sy-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 31, 63, .12); border-color: #C9D8EE; }
.sy-card .sy-cover, .sy-media-card .sy-cover { overflow: hidden; }
.sy-card .sy-cover > *, .sy-media-card .sy-cover > * { transition: transform .6s var(--sy-ease-out); }
.sy-card-link:hover .sy-cover > *, .sy-media-card:hover .sy-cover > * { transform: scale(1.04); }
.sy-feature { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--sy-r-lg); background: #FFFFFF; border: 1px solid #E6EBF3; }
.sy-feature-dark { background: var(--sy-band-grad); color: #FFFFFF; border: 0; }
.sy-feature-dark h2, .sy-feature-dark h3 { color: #FFFFFF !important; }
.sy-feature-dark p { color: rgba(255, 255, 255, .8); }
.sy-icon-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #FFFFFF, #EAF1FB); border: 1px solid #DCE6F4; box-shadow: 0 6px 14px rgba(15, 58, 117, .08); }

/* KPI tiles: one look everywhere */
.sy-kpis { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.sy-kpi { position: relative; overflow: hidden; background: #FFFFFF; border: 1px solid #E6EBF3; border-top: 0; border-radius: var(--sy-r); padding: 16px 18px; box-shadow: 0 4px 14px rgba(11, 31, 63, .05); }
.sy-kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sy-amber), #FFB066); }
.sy-kpi .v { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; color: var(--sy-navy); line-height: 1.15; }
.sy-kpi .l { font-size: .8rem; color: var(--sy-dim); font-weight: 600; margin-top: 4px; }

/* ---------- Page head for the account area and admin (title, sub, actions on one row) ---------- */
.sy-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid #E6EBF3; }
.sy-page-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; margin: 0; }
.sy-page-head p { margin: 4px 0 0; color: var(--sy-dim); }
.sy-page-head .sy-head-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* Portal heading banner: a slim version of the page banner for account pages */
.sy-portal-main > h1:first-child, .sy-portal-main > section:first-child h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- Tables, forms, empty states ---------- */
.sy-table-wrap, .table-responsive { border-radius: var(--sy-r); }
.sy-table thead th, .table thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sy-dim); font-weight: 800; background: #F7F9FC; }
.table > :not(caption) > * > * { padding-block: .8rem; }
.table-hover > tbody > tr { transition: background-color .15s; }
.form-control:focus, .form-select:focus { border-color: var(--sy-indigo); box-shadow: 0 0 0 4px rgba(15, 58, 117, .12); }
.sy-empty { text-align: center; padding: clamp(28px, 5vw, 56px) var(--sp-4); border: 1.5px dashed #CBD6E6; border-radius: var(--sy-r-lg); background: linear-gradient(180deg, #FFFFFF, #F7F9FC); color: var(--sy-dim); }
.sy-empty .sy-art { width: 64px; height: 64px; margin-bottom: var(--sp-3); }

/* ---------- Buttons: soft sheen on the main action ---------- */
.btn-amber, .btn-primary { position: relative; overflow: hidden; }
.btn-amber::after, .btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transition: transform .7s var(--sy-ease-out); pointer-events: none; }
.btn-amber:hover::after, .btn-primary:hover::after { transform: translateX(120%); }
.btn-amber:hover { box-shadow: var(--sy-glow-amber); transform: translateY(-1px); }

/* ---------- Motion: scroll reveal (classes added by app.js / admin.js; content stays visible without JS) ---------- */
html.sy-motion .sy-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--sy-dur) var(--sy-ease-out), transform var(--sy-dur) var(--sy-ease-out); transition-delay: var(--d, 0ms); }
html.sy-motion .sy-reveal.is-in { opacity: 1; transform: none; }
html.sy-motion .sy-header-band .sy-band-text > * { animation: sy-rise .7s var(--sy-ease-out) both; }
html.sy-motion .sy-header-band .sy-band-text > :nth-child(2) { animation-delay: .06s; }
html.sy-motion .sy-header-band .sy-band-text > :nth-child(3) { animation-delay: .12s; }
html.sy-motion .sy-header-band .sy-band-text > :nth-child(4) { animation-delay: .18s; }
html.sy-motion .sy-header-band .sy-band-text > :nth-child(5) { animation-delay: .24s; }
html.sy-motion .sy-band-art { animation: sy-pop .9s var(--sy-ease-out) .15s both; }
@keyframes sy-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sy-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sy-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18px, 14px); } }
@keyframes sy-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes sy-spin { to { transform: rotate(360deg); } }
@keyframes sy-shimmer { to { background-position: -200% 0; } }
.sy-skeleton { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FC 50%, #EEF2F8 75%); background-size: 200% 100%; animation: sy-shimmer 1.4s linear infinite; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  html.sy-motion .sy-reveal { opacity: 1; transform: none; transition: none; }
  .sy-orb, .sy-band-ring, .sy-band-disc, .sy-band-chip, .sy-band-art, .sy-header-band .sy-band-text > *, .sy-skeleton { animation: none !important; }
  .sy-card-link:hover, .sy-lift:hover, .btn-amber:hover { transform: none; }
  .btn-amber::after, .btn-primary::after { display: none; }
}

/* ---------- Admin: same rhythm, cards and grid ---------- */
.sy-admin-body .sy-admin-main { background: var(--sy-page-bg); }
.sy-admin-main > .sy-card, .sy-admin-main section > .sy-card { margin-bottom: var(--sy-gap); }
@media (min-width: 768px) { .sy-admin-main { padding: clamp(20px, 2.4vw, 32px); } }

/* ---------- Admin (agent) ---------- */
/* Page head: amber-ruled eyebrow, title, one-line description */
.sy-admin-main .sy-page-head .sy-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sy-indigo); }
.sy-admin-main .sy-page-head .sy-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--sy-amber); }
.sy-admin-main .sy-page-head p { max-width: 72ch; }
.sy-admin-main .sy-page-head { animation: sy-rise .6s var(--sy-ease-out) both; }
/* One vertical rhythm for blocks placed straight in the content column */
.sy-admin-main main > :is(.sy-panel, .sy-layout, .sy-bento, .sy-kpis, .sy-grid, .sy-grid-2, .sy-grid-3, .sy-grid-4, .sy-stack, .sy-empty, .sy-card, .alert, form) { margin-bottom: var(--sy-gap); }
.sy-admin-main .sy-stack > *, .sy-admin-main .sy-layout > *, .sy-admin-main :is(.sy-grid, .sy-grid-2, .sy-grid-3, .sy-grid-4, .sy-bento) > * { margin-bottom: 0; }
/* Panel head: title (optionally with an icon badge) on the left, badge or link on the right */
.sy-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-4); }
.sy-panel-head h2, .sy-panel > h2:first-child, .sy-panel > h3:first-child { font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; color: var(--sy-navy); margin: 0; display: flex; align-items: center; gap: 10px; }
.sy-panel > h2:first-child, .sy-panel > h3:first-child { margin-bottom: var(--sp-4); }
/* Titles that follow a hidden CSRF input inside form panels get the same voice */
.sy-panel > input[type="hidden"] ~ h2:first-of-type { font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; color: var(--sy-navy); }
.sy-panel-head .sy-icon-badge { width: 38px; height: 38px; border-radius: 12px; color: var(--sy-indigo); flex: none; }
.sy-panel > :last-child { margin-bottom: 0; }
.sy-panel-soft { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); }
/* List panel: tabs, filters, table and pages share one card */
.sy-panel .sy-tabs { margin-bottom: var(--sp-3); }
.sy-panel .sy-filters { margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid #E6EBF3; }
.sy-panel .sy-filters:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.sy-panel .sy-table { border-color: #E6EBF3; }
.sy-panel .sy-table tbody tr { transition: background-color .15s; }
@media (min-width: 768px) { .sy-panel .sy-table tbody tr:hover { background: #F7F9FC; } }
.sy-panel > .sy-empty, .sy-panel > form > .sy-empty { border-width: 1px; }
.sy-empty .sy-empty-title { font-weight: 800; color: var(--sy-navy); margin: 0; }
.sy-empty p { margin: 0; }
.sy-empty p + p { margin-top: 4px; }
@media (max-width: 767.98px) {
  .sy-admin-main .sy-panel { padding: 14px; border-radius: 18px; }
  .sy-panel .sy-table tr { background: #FBFCFE; border-color: #E6EBF3; }
  .sy-panel .sy-form-actions { background: rgba(255, 255, 255, .96); }
}
/* Side column on show/edit pages sits under the 60px desktop top bar */
@media (min-width: 992px) { .sy-admin-main .sy-layout > .sy-sticky { top: 84px; } }
/* Key/value rows used in side panels */
.sy-meta { display: grid; gap: 0; margin: 0; }
.sy-meta > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; border-bottom: 1px solid #EEF2F8; font-size: .92rem; }
.sy-meta > div:last-child { border-bottom: 0; }
.sy-meta dt { font-weight: 600; color: var(--sy-dim); }
.sy-meta dd { margin: 0; text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
/* Dashboard */
.sy-dash-kpis .sy-kpi.dark { background: var(--sy-band-grad); border: 0; }
.sy-dash-kpis .sy-kpi.dark::before { background: linear-gradient(90deg, #FFB066, var(--sy-amber)); }
.sy-dash-list { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; border-bottom: 1px solid #EEF2F8; }
.sy-dash-list:last-child { border-bottom: 0; }
.sy-quick { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.sy-quick .btn { text-align: left; min-height: 48px; display: flex; align-items: center; }
.sy-alert-stack { display: grid; gap: var(--sp-2); }
.sy-alert-stack .alert { margin: 0; }
@media (prefers-reduced-motion: reduce) { .sy-admin-main .sy-page-head { animation: none; } }

/* ---------- Account and partner area (agent) ---------- */
/* Banner fills the page column (portal and "working for a client" mode) and keeps its top padding,
   which theme.css zeroes for section > .container-xl inside the portal */
.sy-ac-page .sy-header-band { width: 100%; margin: 0 0 var(--sy-gap); }
.sy-has-portal .sy-portal-main .sy-header-band > .container-xl { padding-top: clamp(22px, 3.6vw, 44px) !important; }
.sy-has-portal .sy-portal-main .sy-band-slim > .container-xl { padding-top: clamp(16px, 2.4vw, 26px) !important; }
@media (max-width: 767.98px) { .sy-has-portal .sy-portal-main .sy-header-band > .container-xl { padding-top: 20px !important; } }
.sy-ac-page > .alert { margin-bottom: var(--sy-gap); }
.sy-ac-intro { color: var(--sy-dim); font-size: .92rem; max-width: 80ch; margin: 0 0 var(--sp-4); }
.sy-ac-pre { white-space: pre-line; }
.sy-ac-w240 { max-width: 240px; }
.sy-ac-one-col { grid-template-columns: minmax(0, 1fr) !important; }
.sy-ac-warn-text { color: #8A5300; }
.sy-ac-link { color: var(--sy-indigo); }
.sy-ac-on-dark { color: rgba(255, 255, 255, .8); }
.sy-ac-inuse { max-width: 140px; }
.sy-ac-tint { background: var(--sy-indigo-tint); border-radius: var(--sy-r-sm); padding: 14px 16px; }

/* Panel headings: one size everywhere in the account area */
.sy-ac-page .sy-panel h2.h5, .sy-ac-page .sy-panel h2.h6 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.015em; color: var(--sy-navy); }
.sy-ac-page .sy-card-head { align-items: center; margin-bottom: var(--sp-2); }

/* Empty states: centred, icon on top (portal.css lays them out left-aligned) */
.sy-ac-page .sy-empty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.sy-ac-page .sy-empty .sy-art { margin-bottom: var(--sp-1); }
.sy-ac-page .sy-empty .btn { margin-top: var(--sp-2); }

/* List panel: rows with an icon, the text, and status or buttons on the right */
.sy-ac-list { display: flex; flex-direction: column; padding: clamp(6px, 1vw, 10px) clamp(8px, 1.4vw, 16px); }
.sy-ac-list > .sy-row { padding: .85rem .5rem; flex-wrap: wrap; gap: .6rem .9rem; transition: background-color .2s; }
.sy-ac-list > .sy-row:hover { background: #F6F8FC; }
.sy-ac-end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sy-ac-end form { margin: 0; }
.sy-portal-main .sy-row .sy-art-tile.sm, .sy-ac-page .sy-row .sy-art-tile.sm { width: 46px; height: 46px; border-radius: 13px; }
@media (max-width: 575.98px) { .sy-ac-list > .sy-row .sy-art-tile { display: none; } }

/* Dashboard: KPI link tiles and quick actions */
a.sy-kpi.sy-ac-kpi { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.sy-ac-kpi .sy-icon-badge { width: 50px; height: 50px; flex: none; }
.sy-ac-quick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--sy-r); background: #FFFFFF; border: 1px solid #E6EBF3; color: var(--sy-navy); text-decoration: none; box-shadow: 0 2px 8px rgba(11, 31, 63, .04); min-height: 76px; }
.sy-ac-quick b { font-weight: 800; }
.sy-ac-quick small { display: block; color: var(--sy-dim); font-weight: 600; font-size: .78rem; }
.sy-ac-quick::after { content: "\2192"; margin-left: auto; color: var(--sy-amber); font-weight: 800; transition: transform .3s var(--sy-ease-out); }
.sy-ac-quick:hover { color: var(--sy-navy); }
.sy-ac-quick:hover::after { transform: translateX(4px); }
.sy-ac-quick .sy-art-tile.sm { width: 46px; height: 46px; border-radius: 13px; }
@media (max-width: 575.98px) { .sy-ac-page .sy-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sy-ac-quick { flex-direction: column; align-items: flex-start; } .sy-ac-quick::after { display: none; } a.sy-kpi.sy-ac-kpi .sy-icon-badge { display: none; } }

/* Progress meters inside rows and checklists */
.sy-ac-meter { width: 140px; max-width: 100%; height: 8px; }
.sy-ac-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sy-indigo), #3877D6); }
.sy-ac-details > summary { cursor: pointer; list-style: none; }
.sy-ac-details > summary::-webkit-details-marker { display: none; }
.sy-ac-progress { padding-block: 14px; }

/* Side column placed first in the markup (form on top on phones, on the right on desktop) */
@media (min-width: 992px) {
  .sy-ac-side-first > .sy-ac-main { grid-column: 1; grid-row: 1; }
  .sy-ac-side-first > aside { grid-column: 2; grid-row: 1; }
}
.sy-has-portal .sy-portal-main .sy-layout > .sy-sticky { top: 92px; }

/* DPR wizard and generate: step header, step tracker, readiness checks */
.sy-public .container-xl.sy-ac-wizard { max-width: 1040px !important; }
.sy-ac-stephead { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sy-gap); }
.sy-ac-stephead .sy-tabs { padding-bottom: 2px; }
.sy-ac-step-no { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #FFFFFF; background: var(--sy-band-grad); box-shadow: var(--sy-glow-amber); }
.sy-ac-save { white-space: nowrap; }
.sy-ac-wizard .sy-panel > h2:first-child { padding-left: 12px; border-left: 4px solid var(--sy-amber); line-height: 1.3; }
.sy-ac-actions { margin-top: var(--sy-gap); padding: 14px 16px; background: #FFFFFF; border: 1px solid #E6EBF3; border-radius: var(--sy-r); justify-content: flex-end; }
@media (max-width: 767.98px) { .sy-ac-actions { background: rgba(255, 255, 255, .97); padding: 10px 12px; box-shadow: 0 -6px 20px rgba(11, 31, 63, .08); } }
.sy-ac-check { padding: 10px 12px; border-radius: var(--sy-r-sm); }
.sy-ac-check.is-fail { background: #FDECEC; }
.sy-ac-check.is-warn { background: #FFF4DB; }
.sy-ac-check.is-pass { background: #F2FBF5; }
.sy-ac-check-ic { min-width: 26px; justify-content: center; }
.sy-ac-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sy-ac-track a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F6F8FC; color: var(--sy-navy); font-weight: 700; font-size: .88rem; text-decoration: none; }
.sy-ac-track a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #CBD6E6; }
.sy-ac-track li.done a::before { background: var(--sy-success, #16794A); }
.sy-ac-track li.now a { background: var(--sy-amber-tint, #FFF3E6); }
.sy-ac-track li.now a::before { background: var(--sy-amber); box-shadow: 0 0 0 4px rgba(245, 130, 32, .2); }

/* Side menu of the account area */
.sy-ac-side { border-color: #E6EBF3; border-radius: var(--sy-r-lg); padding: 14px; box-shadow: 0 2px 4px rgba(11, 31, 63, .03), 0 10px 30px rgba(11, 31, 63, .06); }
.sy-ac-side .sy-portal-user { background: var(--sy-band-grad); border: 0; border-radius: var(--sy-r); padding: 14px; margin-bottom: 14px; }
.sy-ac-side .sy-portal-user b { color: #FFFFFF; }
.sy-ac-side .sy-portal-user small { color: rgba(255, 255, 255, .72); }
.sy-ac-side .sy-avatar { background: linear-gradient(135deg, var(--sy-amber), #FFB066); color: var(--sy-navy); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.sy-ac-side .sy-portal-group { gap: 2px; margin-bottom: 12px; }
.sy-ac-side .sy-portal-label { padding: 4px 10px 6px; }
.sy-ac-side .sy-portal-nav a { gap: 10px; padding: 6px 10px; min-height: 42px; transition: background-color .2s, color .2s, transform .25s var(--sy-ease-out); }
.sy-ac-side .sy-portal-nav a:hover { transform: translateX(2px); }
.sy-ac-nav-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #F1F5FB; transition: background-color .2s; }
.sy-ac-side .sy-portal-nav a:hover .sy-ac-nav-ic { background: #FFFFFF; }
.sy-ac-side .sy-portal-nav a.active { background: var(--sy-band-grad); box-shadow: 0 8px 20px rgba(11, 31, 63, .18), inset 3px 0 0 var(--sy-amber); }
.sy-ac-side .sy-portal-nav a.active .sy-ac-nav-ic { background: rgba(255, 255, 255, .14); }
.sy-ac-side > .btn { margin-top: 4px; }
@media (max-width: 991.98px) {
  .sy-ac-side { padding: 0; border-radius: var(--sy-r); }
  .sy-ac-side .sy-portal-nav a { background: #F3F6FB; }
  .sy-ac-side .sy-portal-nav a.active { background: var(--sy-navy); }
  .sy-ac-side .sy-portal-nav a:hover { transform: none; }
  .sy-ac-nav-ic { width: 26px; height: 26px; background: #FFFFFF; }
}
@media (prefers-reduced-motion: reduce) { .sy-ac-side .sy-portal-nav a:hover, .sy-ac-quick:hover::after { transform: none; } }

/* ---------- Public pages (agent) ---------- */
/* Page body: banner, then panels and grids separated by one gap */
.sy-public .sy-mk-page > .container-xl { gap: var(--sy-gap); }
.sy-public .container-xl.sy-narrow { max-width: 760px !important; }
.sy-section-head h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; }
.sy-section-head .sy-eyebrow { margin-bottom: 4px; }
.sy-section-head > a { font-weight: 800; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.sy-section-head > a::after { content: " \2192"; display: inline-block; transition: transform .3s var(--sy-ease-out); }
.sy-section-head > a:hover::after { transform: translateX(3px); }
.sy-section-tight { padding-top: var(--sp-3); }
/* theme.css turns .sy-feature into a cover + text grid with no padding; kit tiles that are not cards get the kit look back */
.sy-feature:not(.sy-card) { display: block; padding: clamp(18px, 2.4vw, 28px) !important; }
.sy-feature-dark b, .sy-feature-dark .fw-bold { color: #FFFFFF; }
.sy-on-dark { color: rgba(255, 255, 255, .8); }
/* Dark tiles that carry the banner's dot grid and glows */
.sy-mk-custom.sy-feature-dark, .sy-hero-main, .sy-auth-v4 .sy-auth-side { position: relative; overflow: hidden; isolation: isolate; }
.sy-feature-dark > :not(.sy-band-deco), .sy-hero-main > :not(.sy-band-deco), .sy-auth-v4 .sy-auth-side > :not(.sy-band-deco) { position: relative; z-index: 1; }
.sy-mk-custom.sy-feature-dark { border-radius: var(--sy-r-lg); }
.sy-mk-custom .sy-icon-badge { margin-bottom: 4px; }
/* Cards in listings: titles stay card-sized (the page h2 rule is stronger than theme.css) */
.sy-public main .sy-media-body h2 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.sy-public main h2.sy-slot-day { font-size: 1rem; }
/* Two cards a row on phones for product, scheme, service and blog listings */
@media (max-width: 575.98px) {
  .sy-grid-m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sy-public main .sy-media-body h2 { font-size: .95rem; }
}

/* Home hero: content-sized dark hero (no forced height), three compact tiles beside it, live figures under it.
   Heights come from content only, so nothing stretches into empty space at 1920px or on a laptop. */
.sy-home-top { padding-top: var(--sp-4); }
.sy-hero-grid { display: grid; gap: var(--sy-gap); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 992px) { .sy-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 300px); } }
.sy-public main .sy-hero-main { min-height: 0; background: var(--sy-band-grad); border-radius: var(--sy-r-lg); box-shadow: 0 18px 40px rgba(11, 31, 63, .18);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: var(--sp-5); padding: clamp(24px, 3vw, 44px); }
.sy-public main .sy-hero-main h1 { font-family: var(--sy-sans) !important; font-weight: 800; letter-spacing: -.032em; line-height: 1.08;
  font-size: clamp(1.9rem, 2.6vw, 2.75rem); max-width: 17ch; margin: .9rem 0 .8rem; color: #FFFFFF; text-wrap: balance; }
.sy-hero-main p { font-size: clamp(.95rem, 1.05vw, 1.05rem); max-width: 50ch; margin-bottom: 1.2rem; }
.sy-hero-main .sy-mk-hero-cta .btn-lg { --bs-btn-padding-y: .75rem; font-size: .98rem; }
.sy-hero-main .sy-mk-hero-proof { margin-top: 1rem; }
.sy-hero-main .sy-mk-hero-art { width: 100%; max-height: 290px; justify-self: center; animation: sy-bob 7s ease-in-out infinite; }
@media (max-width: 1199.98px) { .sy-public main .sy-hero-main { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); } .sy-hero-main .sy-mk-hero-art { max-height: 230px; } }
@media (max-width: 767.98px) { .sy-public main .sy-hero-main { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } .sy-hero-main .sy-mk-hero-art { display: none; } .sy-public main .sy-hero-main h1 { font-size: 1.85rem; } }

/* Side tiles: icon beside text, centred vertically, share the hero's height evenly (three of them, so no big gaps) */
.sy-hero-side { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .sy-hero-side { grid-template-rows: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 576px) and (max-width: 991.98px) { .sy-hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sy-hero-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 40px 16px 16px; border-radius: var(--sy-r); text-decoration: none; color: var(--sy-navy);
  border: 1px solid transparent; transition: transform .35s var(--sy-ease-out), box-shadow .35s var(--sy-ease-out), border-color .25s; }
.sy-hero-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 31, 63, .12); color: var(--sy-navy); }
.sy-hero-tile.is-amber { background: linear-gradient(135deg, #FFF1DE, #FFE3BF); border-color: #FBD6A6; }
.sy-hero-tile.is-blue { background: linear-gradient(135deg, #EAF2FD, #D9E7FB); border-color: #C6DAF5; }
.sy-hero-tile.is-green { background: linear-gradient(135deg, #E9F7EF, #D5F0E0); border-color: #BFE5CE; }
.sy-hero-tile-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 8px 18px rgba(11, 31, 63, .1); transition: transform .5s var(--sy-ease-out); }
.sy-hero-tile:hover .sy-hero-tile-ic { transform: rotate(-6deg) scale(1.06); }
.sy-hero-tile-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sy-hero-tile .sy-mk-promo-k { font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: #9A4B08; }
.sy-hero-tile.is-blue .sy-mk-promo-k { color: var(--sy-indigo); }
.sy-hero-tile.is-green .sy-mk-promo-k { color: #0F6B3E; }
.sy-hero-tile b { font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.sy-hero-tile-t > span:last-child { font-size: .8rem; color: #4A5A78; }
.sy-hero-tile i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; transition: transform .3s var(--sy-ease-out); }
.sy-hero-tile:hover i { transform: translate(4px, -50%); }
@media (min-width: 576px) and (max-width: 991.98px) { .sy-hero-tile { flex-direction: column; align-items: flex-start; padding: 16px; } .sy-hero-tile i { display: none; } }

/* Live figures strip */
/* auto-fit: two, three or four live figures always span the full width (figures with no data are left out) */
.sy-hero-stats { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-top: var(--sy-gap); }
@media (min-width: 992px) { .sy-hero-stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.sy-hero-stats a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #FFFFFF; border: 1px solid #E6EBF3; border-radius: var(--sy-r); text-decoration: none; color: var(--sy-navy); box-shadow: 0 2px 8px rgba(11, 31, 63, .04); transition: transform .3s var(--sy-ease-out), box-shadow .3s; }
.sy-hero-stats a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 31, 63, .08); }
.sy-hero-stat-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sy-indigo-tint); }
.sy-hero-stats b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.sy-hero-stats small { display: block; font-size: .78rem; color: var(--sy-dim); }
@media (prefers-reduced-motion: reduce) { .sy-hero-main .sy-mk-hero-art { animation: none; } .sy-hero-tile:hover, .sy-hero-stats a:hover { transform: none; } }

/* Store pages: Previous / numbers / Next, big touch targets, wraps on phones */
.sy-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: var(--sy-gap); }
.sy-pager-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-pager a, .sy-pager .is-current { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 800; text-decoration: none; border: 1px solid #DCE6F4; background: #FFFFFF; color: var(--sy-navy); transition: transform .2s var(--sy-ease-out), box-shadow .2s, border-color .2s; }
.sy-pager a:hover { transform: translateY(-2px); border-color: var(--sy-indigo); box-shadow: 0 8px 18px rgba(11, 31, 63, .08); }
.sy-pager .is-current { background: var(--sy-navy); border-color: var(--sy-navy); color: #FFFFFF; }
.sy-pager small { width: 100%; text-align: center; }

/* Grid tiles that sit next to a taller neighbour: centre their content instead of leaving it stranded at the top */
.sy-bento > .sy-feature, .sy-bento > .sy-mk-custom, .sy-bento > .sy-feature-dark { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.sy-bento > .sy-feature > *, .sy-bento > .sy-feature-dark > * { margin-bottom: 0; }
.sy-bento > .sy-feature-dark h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.sy-dark-steps { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sy-dark-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .88); font-size: .88rem; font-weight: 600; }
.sy-dark-steps span { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--sy-amber); color: var(--sy-navy); font-size: .78rem; font-weight: 800; }

/* Sign-in pages: card sized by its content, form centred, illustration capped */
.sy-public .sy-auth { min-height: 0; padding-block: clamp(20px, 3vw, 40px); }
.sy-auth-v4 .sy-auth-form { display: flex; flex-direction: column; justify-content: center; }
.sy-auth-v4 .sy-auth-side img, .sy-auth-side-art img, .sy-auth-side-art svg { max-height: 220px; width: auto; max-width: 100%; }
.sy-auth-side-art { min-height: 0 !important; }

/* Detail pages and forms: small helpers */
.sy-pre { white-space: pre-line; }
.sy-kpi .v.sy-v-sm { font-size: 1rem; }
.sy-slot { min-height: 48px; display: inline-flex; align-items: center; }
.sy-notice-box { max-height: 50vh; overflow: auto; }
.sy-grid-tight { gap: var(--sp-2) var(--sp-4); }
.flex-none { flex: none; }
.sy-contact { gap: var(--sy-gap); }
/* Lead box in a side column: always stacked */
@media (min-width: 992px) {
  .sy-layout > .sy-calc-lead { grid-column: auto; }
  .sy-layout > .sy-sticky .sy-lead { flex-direction: column; align-items: stretch; }
  .sy-layout > .sy-sticky .sy-lead-grid { flex: none; }
  .sy-layout > .sy-sticky .sy-lead .btn { margin-top: 0; }
}
/* Calculators: form and result side by side on wide screens only */
@media (min-width: 992px) and (max-width: 1199.98px) { .sy-calc-pair { grid-template-columns: minmax(0, 1fr); } }
.sy-calc-pair > .sy-panel { margin: 0; }

/* Sign-in pages: split card on the kit radius, side panel on the banner gradient with the banner graphic */
.sy-auth-v4 .sy-authbox { border-radius: var(--sy-r-lg); border-color: #E6EBF3; box-shadow: 0 18px 40px rgba(11, 31, 63, .10); }
.sy-auth-v4 .sy-auth-side { background: var(--sy-band-grad); }
.sy-auth-v4 .sy-auth-form h1 { font-family: var(--sy-sans) !important; font-weight: 800; letter-spacing: -.028em; }
.sy-auth-v4 .sy-auth-side h2 { font-family: var(--sy-sans); font-weight: 800; letter-spacing: -.025em; }
.sy-authbox-sm { max-width: 880px; }
.sy-auth-side-art { align-items: center; justify-content: center; min-height: 340px; }
@media (max-width: 767.98px) { .sy-auth-side-art { display: none !important; } }
/* ---------- FAQ page: search and topics ---------- */
.sy-faq-tools { display: flex; flex-direction: column; gap: var(--sp-4); }
.sy-faq-search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--sy-line); border-radius: 14px; padding: 4px 14px; background: #FFFFFF; transition: border-color .2s, box-shadow .2s; }
.sy-faq-search:focus-within { border-color: var(--sy-amber); box-shadow: 0 0 0 4px rgba(245, 130, 32, .14); }
.sy-faq-search input { border: 0; outline: 0; flex: 1; min-height: 46px; font-size: 1rem; background: transparent; min-width: 0; }
.sy-faq-topics { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sy-faq-topics::-webkit-scrollbar { display: none; }
.sy-faq-topics a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--sy-line); background: #F7F9FC; color: var(--sy-navy); font-weight: 700; font-size: .84rem; text-decoration: none; transition: border-color .2s, background .2s; }
.sy-faq-topics a:hover { border-color: var(--sy-amber); background: #FFF6EC; }
.sy-faq-topics small { background: var(--sy-navy); color: #FFFFFF; border-radius: 999px; padding: 1px 7px; font-size: .7rem; }
.sy-faq-group { scroll-margin-top: 90px; }

/* ---------- About page ---------- */
.sy-about p { color: #3E4B66; line-height: 1.75; }
.sy-about-facts { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.sy-about-facts > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F7F9FC; border: 1px solid var(--sy-line); }
.sy-about-facts b { display: block; font-size: .92rem; color: var(--sy-navy); }
.sy-about-facts small { display: block; color: #5B6B85; font-size: .8rem; line-height: 1.4; }
.sy-about-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-3); counter-reset: s; }
.sy-about-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px 20px; border-radius: 16px; border: 1px solid var(--sy-line); background: linear-gradient(160deg, #FFFFFF, #F5F8FD); }
.sy-about-steps b { font-size: 1rem; color: var(--sy-navy); }
.sy-about-steps small { color: #5B6B85; font-size: .84rem; line-height: 1.5; }
.sy-about-step-n { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sy-amber); color: var(--sy-navy); font-weight: 800; font-size: .85rem; }
.sy-about-values { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.sy-about-value { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; border: 1px solid var(--sy-line); background: #FFFFFF; transition: transform .3s var(--sy-ease-out), box-shadow .3s; }
.sy-about-value:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 31, 63, .08); }
.sy-about-value b { color: var(--sy-navy); font-size: 1rem; }
.sy-about-value small { color: #5B6B85; font-size: .85rem; line-height: 1.5; }
.sy-about-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sy-about-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #F7F9FC; border: 1px solid var(--sy-line); font-weight: 700; font-size: .86rem; color: var(--sy-navy); }
.sy-about-note { display: flex; gap: var(--sp-4); align-items: flex-start; border-left: 4px solid var(--sy-amber); }
.sy-about-note .sy-icon-badge { flex: none; }
.sy-about-cta { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--sp-4); }
.sy-about-cta h2 { margin: 4px 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.sy-about-cta p { margin: 0; }

/* ---------- Contact page ---------- */
.sy-contact-channels { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sy-gap); }
.sy-contact-channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--sy-line); text-decoration: none; color: var(--sy-navy); box-shadow: 0 2px 10px rgba(11, 31, 63, .05); }
.sy-contact-channel-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #E1ECFB; }
.sy-contact-channel.is-wa .sy-contact-channel-ic { background: #DFF5E7; }
.sy-contact-channel.is-call .sy-contact-channel-ic { background: #FFF0D9; }
.sy-contact-channel.is-meet .sy-contact-channel-ic { background: #F0E8FD; }
.sy-contact-channel small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B7894; }
.sy-contact-channel b { display: block; font-size: 1rem; word-break: break-word; }
.sy-contact-channel em { display: block; font-style: normal; font-size: .8rem; color: #5B6B85; }
.sy-contact-channel.is-wa em { color: #15803D; font-weight: 700; }
.sy-contact-topics { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.sy-contact-topic { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--sy-line); text-decoration: none; color: var(--sy-navy); background: #FFFFFF; }
.sy-contact-topic:hover { border-color: var(--sy-amber); }
.sy-contact-topic .sy-icon-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; }
.sy-contact-topic b { display: block; font-size: .95rem; }
.sy-contact-topic small { display: block; color: #5B6B85; font-size: .8rem; }
.sy-contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sy-contact-details li { display: flex; gap: 12px; align-items: flex-start; }
.sy-contact-details li > svg { flex: none; margin-top: 2px; }
.sy-contact-details small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B7894; }
.sy-contact-details b { display: block; font-size: .92rem; color: var(--sy-navy); }
.sy-contact-details a { display: inline-block; margin-top: 2px; }

@media (min-width: 576px) {
  .sy-contact-channels, .sy-contact-topics, .sy-about-steps, .sy-about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .sy-about-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sy-about-facts > div { flex-direction: column; align-items: flex-start; }
  .sy-about-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 992px) {
  .sy-contact-channels, .sy-about-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sy-contact-topics, .sy-about-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sy-about .sy-feature-dark p { color: rgba(255, 255, 255, .84); }

/* ---------- Side menu + content (DPR builder, admin settings) ---------- */
.sy-public .container-xl.sy-ac-wizard { max-width: 1240px !important; }
.sy-side-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sy-gap); align-items: start; }
.sy-side-main { min-width: 0; }
.sy-side-card { padding: 18px !important; }
.sy-side-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.sy-side-steps li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--sy-navy); transition: background .2s; }
.sy-side-steps li a:hover { background: #F3F6FB; }
.sy-side-step-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: #EEF2F8; color: #5B6B85; border: 1px solid var(--sy-line); }
.sy-side-step-t { min-width: 0; }
.sy-side-step-t b { display: block; font-size: .9rem; line-height: 1.25; }
.sy-side-step-t small { display: block; font-size: .74rem; color: #6B7894; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-side-steps li.is-done .sy-side-step-n { background: #E3F5EA; color: #15803D; border-color: #BFE6CD; }
.sy-side-steps li.is-current a { background: linear-gradient(135deg, #0B1F3F, #173A73); color: #FFFFFF; box-shadow: 0 10px 22px rgba(11, 31, 63, .18); }
.sy-side-steps li.is-current .sy-side-step-n { background: var(--sy-amber); color: var(--sy-navy); border-color: var(--sy-amber); }
.sy-side-steps li.is-current small { color: rgba(255, 255, 255, .75); }
.sy-side-steps:not(.is-plain) li + li::before { content: ""; position: absolute; left: 24px; width: 2px; height: 4px; margin-top: -4px; background: var(--sy-line); }
.sy-side-drop { border: 1px solid var(--sy-line); border-radius: 14px; background: #FFFFFF; }
.sy-side-drop > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 800; color: var(--sy-navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sy-side-drop > summary::-webkit-details-marker { display: none; }
.sy-side-drop > summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.sy-side-drop[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sy-side-drop > .sy-side-steps { padding: 0 8px 10px; }
.sy-panel.sy-side-drop { padding: 0 !important; }
@media (min-width: 992px) {
  .sy-side-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .sy-side-nav { position: sticky; top: 96px; }
  .sy-admin .sy-side-nav, .sy-side-nav.is-admin { top: 20px; }
}

/* ---------- Policy documents ---------- */
.sy-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sy-gap); align-items: start; margin-bottom: var(--sy-gap); }
.sy-doc-side { display: flex; flex-direction: column; gap: var(--sp-3); }
.sy-doc-toc { background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: 18px; box-shadow: 0 2px 10px rgba(11, 31, 63, .04); }
.sy-doc-toc > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; color: var(--sy-navy); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sy-doc-toc > summary::-webkit-details-marker { display: none; }
.sy-doc-toc > summary small { font-weight: 600; color: #6B7894; font-size: .76rem; margin-left: auto; }
.sy-doc-toc ol { list-style: none; margin: 0; padding: 0 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.sy-doc-toc a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; color: #3E4B66; text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.35; border-left: 3px solid transparent; }
.sy-doc-toc a span { flex: none; min-width: 20px; color: #9AA6BF; font-weight: 800; font-size: .78rem; padding-top: 1px; }
.sy-doc-toc a:hover { background: #F3F6FB; color: var(--sy-navy); }
.sy-doc-toc a.active { background: #FFF6EC; color: var(--sy-navy); border-left-color: var(--sy-amber); }
.sy-doc-side-actions { flex-direction: column; gap: 8px; }
.sy-doc-body { padding: clamp(20px, 4vw, 44px) !important; }
.sy-doc-meta { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--sy-line); }
.sy-doc-meta .sy-icon-badge { flex: none; width: 46px; height: 46px; }
.sy-doc-meta b { display: block; color: var(--sy-navy); font-size: 1.05rem; }
.sy-doc-meta small { display: block; color: #6B7894; font-size: .8rem; }
.sy-doc-body p, .sy-doc-body li { color: #3E4B66; line-height: 1.8; font-size: 1rem; max-width: 72ch; }
.sy-doc-body .sy-prose-h { scroll-margin-top: 100px; margin: 30px 0 10px; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--sy-navy); display: flex; align-items: center; gap: 10px; }
.sy-doc-body .sy-prose-h::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 4px; background: var(--sy-amber); }
.sy-doc-body .sy-prose-list { padding-left: 0; list-style: none; margin: 0 0 16px; }
.sy-doc-body .sy-prose-list li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.sy-doc-body .sy-prose-list li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sy-amber); }
.sy-doc-foot { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: #F7F9FC; border: 1px solid var(--sy-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sy-doc-foot span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--sy-navy); }
.sy-doc-related { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 576px) { .sy-doc-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .sy-doc { grid-template-columns: 290px minmax(0, 1fr); }
  .sy-doc-side { position: sticky; top: 96px; }
  .sy-doc-toc > summary { pointer-events: none; }
  .sy-doc-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media print {
  .sy-header-band, .sy-doc-side, .sy-doc-foot, .sy-doc-related, header, footer, nav, .sy-tabbar, .sy-wa-float { display: none !important; }
  .sy-doc { display: block; } .sy-doc-body { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
}
@media (min-width: 992px) { .sy-admin-body .sy-side-nav { top: 20px; } }
@media (max-width: 991.98px) {
  .sy-doc-toc > summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin: -4px 4px 0 6px; }
  .sy-doc-toc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
}
