/* Sri Yojana base styles on top of Bootstrap 5.
   Navy ground, indigo primary, amber accent, warm alabaster surfaces, Manrope + Playfair Display. */
/* The hidden attribute must win over component display rules (cookie banner, d-flex groups). */
[hidden] { display: none !important; }
:root {
  --sy-navy: #0B1F3F;
  --sy-navy-2: #15305C;
  --sy-indigo: #0F3A75;
  --sy-indigo-dark: #0B2C59;
  --sy-indigo-tint: #EAF1FB;
  --sy-amber: #F58220;
  --sy-ink: #0B1F3F;
  --sy-muted: #3B4A66;
  --sy-dim: #5B6B85;
  --sy-soft: #F7F6F2;
  --sy-line: #E4E8F0;
  --sy-on-navy: #D5E0F2;
  --sy-on-navy-dim: #B7C7E3;
  --sy-success: #16794A;
  --sy-danger: #B42318;
  --sy-radius: 14px;

  --bs-body-font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--sy-ink);
  --bs-body-bg: #FFFFFF;
  --bs-primary: var(--sy-indigo);
  --bs-primary-rgb: 15, 58, 117;
  --bs-link-color: var(--sy-indigo);
  --bs-link-color-rgb: 15, 58, 117;
  --bs-link-hover-color: var(--sy-indigo-dark);
  --bs-border-color: var(--sy-line);
  --bs-border-radius: 12px;
}

body { font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.sy-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sy-indigo); }
.sy-muted { color: var(--sy-muted); }
.sy-dim { color: var(--sy-dim); }

/* Buttons */
.btn { font-weight: 700; border-radius: 12px; padding: .7rem 1.1rem; min-height: 44px; }
.btn-primary { --bs-btn-bg: var(--sy-indigo); --bs-btn-border-color: var(--sy-indigo); --bs-btn-hover-bg: var(--sy-indigo-dark); --bs-btn-hover-border-color: var(--sy-indigo-dark); --bs-btn-active-bg: var(--sy-indigo-dark); }
.btn-amber { background: var(--sy-amber); border-color: var(--sy-amber); color: var(--sy-navy); font-weight: 800; }
.btn-amber:hover, .btn-amber:focus { background: #E0700F; border-color: #E0700F; color: var(--sy-navy); }
.btn-outline-light-indigo { border: 1.5px solid rgba(255, 255, 255, .55); color: #FFFFFF; }
.btn-outline-light-indigo:hover { background: var(--sy-navy-2); color: #FFFFFF; }
.btn-soft { background: var(--sy-indigo-tint); color: var(--sy-indigo); border: 0; }
.btn-soft:hover { background: #D6E4F7; color: var(--sy-indigo-dark); }
:focus-visible { outline: 3px solid var(--sy-amber); outline-offset: 2px; }

/* Header */
.sy-header { background: var(--sy-navy); color: #FFFFFF; position: relative; overflow: hidden; }

.sy-header > * { position: relative; }
.sy-brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.sy-brand:hover { color: #FFFFFF; }

.sy-brand span { font-weight: 500; color: var(--sy-on-navy-dim); }
.sy-brand { white-space: nowrap; }
@media (max-width: 420px) { .sy-brand span { display: none; } }
.sy-nav a { color: var(--sy-on-navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.sy-nav a:hover, .sy-nav a.active { color: #FFFFFF; }
.sy-nav .btn { font-size: 14px; }

/* Hero */

.sy-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; background: var(--sy-navy-2); color: var(--sy-amber); padding: 7px 12px; border-radius: 999px; }
.sy-stat { background: var(--sy-navy-2); border-radius: var(--sy-radius); padding: 14px 16px; height: 100%; }
.sy-stat b { display: block; font-size: 24px; font-weight: 800; color: var(--sy-amber); line-height: 1; }
.sy-stat small { display: block; font-size: 12.5px; color: #D6E4F7; margin-top: 6px; line-height: 1.4; }

/* Surfaces */
.sy-soft { background: var(--sy-soft); }
.sy-card { background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: 16px; padding: 22px; }
.sy-card-strong { border: 2px solid var(--sy-indigo); }

/* Auth pages */
.sy-auth { min-height: calc(100vh - 160px); display: flex; align-items: center; padding: 48px 0; }
.sy-auth .sy-card { max-width: 480px; margin: 0 auto; width: 100%; box-shadow: 0 24px 60px rgba(11, 31, 63, .08); }
.sy-auth h1 { font-size: 28px; }
.form-label { font-weight: 700; font-size: 14px; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--sy-line); padding: .7rem .9rem; min-height: 46px; }
.form-control:focus, .form-select:focus { border-color: var(--sy-indigo); box-shadow: 0 0 0 .2rem rgba(15, 58, 117, .15); }
.form-check-input:checked { background-color: var(--sy-indigo); border-color: var(--sy-indigo); }
.form-text { color: var(--sy-dim); }
.sy-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Flash and banners */
.alert { border-radius: 12px; border: 0; font-weight: 600; }
.sy-verify-banner { background: #FFF4DB; color: #6B4100; font-weight: 600; font-size: 14px; }

/* Footer */
.sy-footer { background: var(--sy-navy); color: #A9B8D6; font-size: 13px; }
.sy-footer a { color: var(--sy-on-navy); text-decoration: none; }
.sy-footer a:hover { color: #FFFFFF; }

/* Cookie banner */
.sy-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; max-width: 720px; margin: 0 auto;
  background: var(--sy-navy); color: #FFFFFF; border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(11, 31, 63, .32); }
.sy-cookie p { margin: 0; color: var(--sy-on-navy); font-size: 14px; }

/* Admin */
.sy-admin { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--sy-soft); }
.sy-sidebar { flex: 1 1 240px; max-width: 260px; background: var(--sy-navy); color: #FFFFFF; padding: 20px 14px; }
.sy-sidebar a { display: flex; align-items: center; gap: 10px; color: var(--sy-on-navy); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.sy-sidebar a:hover, .sy-sidebar a.active { background: var(--sy-navy-2); color: #FFFFFF; }
.sy-sidebar .sy-side-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(213, 224, 242, .62); padding: 14px 12px 6px; font-weight: 700; }
.sy-admin-main { flex: 999 1 560px; min-width: 0; padding: 24px; }
@media (max-width: 767px) { .sy-sidebar { max-width: none; } .sy-admin-main { padding: 16px; } }
/* ---------- Mobile-first app shell ---------- */

.sy-icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--sy-navy-2); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; }
.sy-icon-btn:hover { background: var(--sy-indigo); color: #FFFFFF; }

.sy-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: flex; justify-content: space-around;
  background: #FFFFFF; border-top: 1px solid var(--sy-line); box-shadow: 0 -8px 24px rgba(11, 31, 63, .06);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.sy-tabbar a, .sy-tabbar button { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--sy-dim); text-decoration: none; font-size: 11px; font-weight: 700; border: 0; background: none; border-radius: 12px; }
.sy-tabbar a.active { color: var(--sy-indigo); }
.sy-tabbar a.active svg { background: var(--sy-indigo-tint); border-radius: 10px; padding: 3px; box-sizing: content-box; margin: -3px; }
.sy-tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 991.98px) {
  body.sy-has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .sy-cookie { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Phone-sized surfaces */
@media (max-width: 575.98px) {
  body { font-size: 15.5px; }
  .container-xl { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  
  
  
  .sy-stat { padding: 12px; }
  .sy-stat b { font-size: 18px; }
  .sy-stat small { font-size: 11.5px; }
  .sy-auth { padding: 0; min-height: auto; align-items: stretch; background: #FFFFFF !important; }
  .sy-auth .container-xl { padding: 0; }
  .sy-auth .sy-card { border: 0; border-radius: 0; box-shadow: none; padding: 24px 16px 32px; }
  .sy-auth h1 { font-size: 26px; }
  .sy-card { padding: 18px; }
  .btn { width: auto; }
  .sy-footer { font-size: 12.5px; }
}

/* Admin app shell on phones */
.sy-admin-appbar { position: sticky; top: 0; z-index: 1040; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--sy-navy); padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; }
.sy-admin-appbar .sy-brand { font-size: 17px; }
.sy-offcanvas { background: var(--sy-navy); color: #FFFFFF; max-width: 86vw; }
.sy-sidebar-body a { display: flex; align-items: center; gap: 10px; color: var(--sy-on-navy); text-decoration: none; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 15px; min-height: 44px; }
.sy-sidebar-body a:hover, .sy-sidebar-body a.active { background: var(--sy-navy-2); color: #FFFFFF; }

/* ---------- Admin components ---------- */
.sy-page-head h1 { font-size: 28px; }
@media (max-width: 575.98px) { .sy-page-head h1 { font-size: 24px; } .sy-head-actions { width: 100%; } .sy-head-actions .btn { flex: 1 1 auto; } }
.sy-topsearch { position: relative; max-width: 560px; }
.sy-topsearch .form-control { padding-left: 42px; background: #FFFFFF; }
.sy-topsearch-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sy-dim); pointer-events: none; }
.sy-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sy-kpi { background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); padding: 14px 16px; }
.sy-kpi .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sy-kpi .l { font-size: 12.5px; color: var(--sy-dim); margin-top: 4px; }
.sy-kpi.dark { background: var(--sy-navy); border-color: var(--sy-navy); color: #FFFFFF; }
.sy-kpi.dark .v { color: var(--sy-amber); }
.sy-kpi.dark .l { color: var(--sy-on-navy); }
.sy-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sy-badge.ok { background: #E8F6EC; color: #15803D; }
.sy-badge.warn { background: #FFF4DB; color: #8A5300; }
.sy-badge.fail { background: #FEF0EE; color: #B42318; }
.sy-badge.info { background: var(--sy-indigo-tint); color: var(--sy-indigo); }
.sy-badge.muted { background: var(--sy-line); color: var(--sy-muted); }
.sy-today-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--sy-line); text-decoration: none; color: inherit; }
.sy-today-item:last-child { border-bottom: 0; }
.sy-today-item .t { font-weight: 700; }
.sy-today-item .s { font-size: 13px; color: var(--sy-dim); }
.sy-today-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--sy-indigo); }
.sy-today-dot.overdue { background: var(--sy-danger); }
.sy-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.sy-bars div { flex: 1 1 0; background: var(--sy-indigo-tint); border-radius: 6px 6px 0 0; position: relative; min-height: 3px; }
.sy-bars div.has { background: var(--sy-indigo); }
.sy-bars div.today { background: var(--sy-amber); }

/* Responsive tables: rows become cards on phones */
.sy-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); overflow: hidden; font-size: 14px; }
.sy-table th { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--sy-indigo); background: var(--sy-indigo-tint); padding: 10px 14px; text-align: left; white-space: nowrap; }
.sy-table td { padding: 12px 14px; border-top: 1px solid var(--sy-line); vertical-align: top; }
.sy-table td.min, .sy-table th.min { width: 1%; white-space: nowrap; }
@media (max-width: 767.98px) {
  .sy-table, .sy-table tbody, .sy-table tr, .sy-table td { display: block; width: 100%; }
  .sy-table { border: 0; background: transparent; }
  .sy-table thead { display: none; }
  .sy-table tr { background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); margin-bottom: 10px; padding: 6px 4px; }
  .sy-table td { border: 0; padding: 6px 12px; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .sy-table td::before { content: attr(data-label); font-weight: 700; color: var(--sy-dim); font-size: 12.5px; text-align: left; flex: none; }
  .sy-table td[data-label=""]::before { content: none; }
  .sy-table td.sy-td-main { display: block; text-align: left; font-weight: 700; }
  .sy-table td.sy-td-main::before { content: none; }
}
.sy-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sy-filters .form-control, .sy-filters .form-select { flex: 1 1 160px; min-width: 0; }
.sy-filters .btn { flex: 0 0 auto; }

/* Bulk action bar */
.sy-bulkbar { position: sticky; bottom: 0; z-index: 1030; background: var(--sy-navy); color: #FFFFFF; border-radius: 14px; padding: 10px 12px; margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
@media (max-width: 991.98px) { .sy-bulkbar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.sy-bulkbar .form-select { width: auto; min-width: 160px; }

/* Sticky form actions on phones */
.sy-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .sy-form-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 1020; background: rgba(247, 246, 242, .96); padding: 10px 0; }
  .sy-form-actions .btn { flex: 1 1 auto; }
}
.sy-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sy-tabs::-webkit-scrollbar { display: none; }
.sy-tabs a { flex: none; padding: 9px 14px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--sy-line); color: var(--sy-ink); font-weight: 700; font-size: 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.sy-tabs a.active { background: var(--sy-indigo); border-color: var(--sy-indigo); color: #FFFFFF; }
.min-w-0 { min-width: 0; }
.sy-pre { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; background: var(--sy-soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; max-height: 320px; overflow: auto; }
.sy-progress { height: 10px; background: var(--sy-line); border-radius: 999px; overflow: hidden; }
.sy-progress > div { height: 100%; background: var(--sy-indigo); width: 0; transition: width .2s; }
.sy-admin-body .sy-admin { min-height: 100vh; }

/* ---------- Public app screens ---------- */
.sy-icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--sy-indigo-tint); color: var(--sy-indigo); display: flex; align-items: center; justify-content: center; flex: none; }
.sy-card-link { transition: border-color .15s, transform .15s; }
.sy-card-link:hover { border-color: var(--sy-indigo); transform: translateY(-2px); }
.sy-ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sy-ticks li { position: relative; padding-left: 26px; }
.sy-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #E8F6EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sy-score { --p: 0; flex: none; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--sy-indigo) calc(var(--p) * 1%), var(--sy-line) 0); }
.sy-score span { width: 54px; height: 54px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; font-weight: 800; font-size: 16px; }

/* Choice cards: big tappable radio options */
.sy-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sy-choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sy-choice { display: flex; align-items: center; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--sy-line); border-radius: 14px;
  background: #FFFFFF; font-weight: 700; cursor: pointer; transition: border-color .12s, background .12s; }
.sy-choice:hover { border-color: #B7C7E3; }
.sy-choice-input:checked + .sy-choice { border: 2px solid var(--sy-indigo); background: var(--sy-indigo-tint); color: var(--sy-indigo-dark); }
.sy-choice-input:focus-visible + .sy-choice { outline: 3px solid var(--sy-amber); outline-offset: 2px; }

/* Wizard */
.sy-wizard { display: flex; flex-direction: column; gap: 20px; }
.sy-step { background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: 18px; padding: 22px; min-width: 0; }
.sy-step-q { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; float: none; width: auto; line-height: 1.25; }
.sy-step-help { color: var(--sy-dim); font-size: 14px; margin: 0 0 14px; }
.sy-step-error { border-color: var(--sy-danger); }
.sy-step-error .sy-step-help::after { content: " Please answer to continue."; color: var(--sy-danger); font-weight: 700; }
.sy-wizard-nav { display: flex; gap: 10px; }
.sy-wizard:not(.is-stepped) #sy-next, .sy-wizard:not(.is-stepped) #sy-prev { display: none; }
@media (max-width: 767.98px) {
  .sy-step { padding: 18px 16px; border-radius: 16px; }
  .sy-step-q { font-size: 20px; }
  .sy-choices { grid-template-columns: 1fr 1fr; }
  .sy-wizard-nav { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 1020; background: rgba(247, 246, 242, .96); padding: 10px 0; }
}

/* ---------- Compare ---------- */
.sy-compare-btn .on { display: none; }
.sy-compare-btn.is-on { background: var(--sy-indigo); color: #FFFFFF; }
.sy-compare-btn.is-on .on { display: inline; }
.sy-compare-btn.is-on .off { display: none; }
.sy-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; background: var(--sy-navy); color: #FFFFFF;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(11, 31, 63, .22); }
body:has(#sy-compare-tray:not([hidden])) main { padding-bottom: 64px; }
.sy-tray-chip { background: var(--sy-navy-2); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
@media (max-width: 991.98px) { .sy-compare-tray { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; } }
.sy-compare-wrap { overflow-x: auto; background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.sy-compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: calc(130px + var(--cols) * 190px); font-size: 14px; }
.sy-compare th, .sy-compare td { padding: 12px 14px; border-bottom: 1px solid var(--sy-line); vertical-align: top; text-align: left; }
.sy-compare thead th { background: var(--sy-indigo-tint); position: sticky; top: 0; }
.sy-compare-label { position: sticky; left: 0; background: #FFFFFF; z-index: 1; width: 130px; min-width: 130px; font-size: 12.5px; font-weight: 700; color: var(--sy-dim);
  box-shadow: 1px 0 0 var(--sy-line); }
.sy-compare thead .sy-compare-label { background: var(--sy-indigo-tint); z-index: 2; }
.sy-compare-name { font-weight: 800; font-size: 16px; color: var(--sy-ink); text-decoration: none; }
.sy-compare-hl td, .sy-compare-hl th { background: #FFF8E6; }
.sy-compare tr:last-child th, .sy-compare tr:last-child td { border-bottom: 0; }

/* ---------- Document checklist ---------- */
.sy-doc-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--sy-line); }
.sy-doc-row:last-child { border-bottom: 0; }
.sy-doc-row .form-check-input { width: 22px; height: 22px; margin-top: 2px; flex: none; cursor: pointer; }
.sy-doc-row.is-done .sy-doc-name { text-decoration: line-through; color: var(--sy-dim); }

/* ---------- Store ---------- */

.sy-preview-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.sy-preview-strip img { height: 260px; width: auto; max-width: 80%; border-radius: 10px; border: 1px solid var(--sy-line); scroll-snap-align: start; }
@media (min-width: 992px) { .sy-buy-box { position: sticky; top: 16px; } }
.sy-sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 1044; background: #FFFFFF;
  border-top: 1px solid var(--sy-line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 -8px 24px rgba(11, 31, 63, .08); }
body:has(.sy-sticky-buy) main { padding-bottom: 72px; }
body:has(.sy-sticky-buy) .sy-compare-tray { display: none; }
.sy-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sy-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sy-stars label { font-size: 30px; line-height: 1; color: var(--sy-line); cursor: pointer; min-width: 36px; text-align: center; }
.sy-stars input:checked ~ label, .sy-stars label:hover, .sy-stars label:hover ~ label { color: var(--sy-amber); }
.sy-stars input:focus-visible + label { outline: 3px solid var(--sy-amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- Requests and tickets ---------- */
.sy-steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.sy-steps li { flex: 1 1 0; min-width: 0; line-height: 1.25; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--sy-dim); position: relative; padding-top: 18px; }
.sy-steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--sy-line); }
.sy-steps li.done::before { background: var(--sy-indigo); }
.sy-steps li.now::before { background: var(--sy-amber); }
.sy-steps li.now { color: var(--sy-ink); }
@media (max-width: 420px) { .sy-steps li { font-size: 10.5px; } }
/* Partner acting for a client */
.sy-acting { position: sticky; top: 0; z-index: 1090; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 16px; background: var(--sy-amber); color: var(--sy-navy); font-size: 14px; }
.sy-acting form { margin: 0; }
.sy-acting button { border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 700; background: var(--sy-navy); color: #fff; min-height: 36px; }
/* Vertical timeline for application stages */
.sy-timeline { list-style: none; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.sy-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--sy-line); }
.sy-timeline li { position: relative; }
.sy-timeline li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--sy-indigo); }
.sy-timeline li:first-child::before { background: var(--sy-amber); border-color: var(--sy-amber); }
.sy-thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.sy-msg { max-width: 88%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.sy-msg.mine { align-self: flex-end; align-items: flex-end; }
.sy-msg-body { background: var(--sy-soft); border-radius: 14px 14px 14px 4px; padding: 10px 12px; word-break: break-word; }
.sy-msg.mine .sy-msg-body { background: var(--sy-indigo-tint); border-radius: 14px 14px 4px 14px; }
.sy-msg.internal .sy-msg-body { background: #FFF4DB; border: 1px dashed #E5B85C; }

.sy-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 1px; background: var(--sy-indigo-tint); padding: 10px 12px; border-radius: 10px; word-break: break-all; }

/* Floating WhatsApp button, above the phone tab bar */
.sy-wa-float {position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:1040;width:52px;height:52px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.sy-wa-float:hover {color:#fff;filter:brightness(.95)}
@media (min-width:992px){.sy-wa-float {bottom:24px}}

/* Logo in the header. The built-in white-lettering logo is made for the navy bar. */
.sy-brand img { height: 34px; width: auto; display: block; }
.sy-admin-appbar .sy-brand img { height: 30px; }
.sy-brand.on-chip img { background: #FFFFFF; padding: 3px 10px; border-radius: 10px; }
.sy-brand img { height: 40px; } .sy-admin-appbar .sy-brand img { height: 34px; }

/* White header bar and white footer, carrying the colour logo. The navy hero below the bar is unchanged. */

.sy-header .sy-brand img { height: 42px; }
.sy-header .sy-nav a { color: var(--sy-navy); }
.sy-header .sy-nav a:hover, .sy-header .sy-nav a.active { color: var(--sy-indigo); }
.sy-header .sy-icon-btn { background: var(--sy-indigo-tint); color: var(--sy-navy); }
.btn-outline-navy { border: 2px solid var(--sy-navy); color: var(--sy-navy); background: transparent; }
.btn-outline-navy:hover { background: var(--sy-navy); color: #FFFFFF; }
.sy-footer { background: #FFFFFF; color: var(--sy-muted); border-top: 3px solid var(--sy-amber); }
.sy-footer a { color: var(--sy-navy); }
.sy-footer a:hover { color: var(--sy-indigo); }
.sy-footer .sy-brand img { height: 44px; }

/* ---- Public header: utility bar, main bar, dropdowns, mobile menu ---- */

.sy-header .sy-nav { gap: 26px !important; }
.sy-header .sy-nav a { font-weight: 700; font-size: 14.5px; color: var(--sy-navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.sy-header .sy-nav a:hover, .sy-header .sy-nav a.active { color: var(--sy-indigo); border-bottom-color: var(--sy-amber); }
.sy-header .dropdown-toggle::after { vertical-align: .15em; }

.sy-menu { max-width: 88vw; }
.sy-menu .offcanvas-header { border-bottom: 1px solid var(--sy-line); }
.sy-menu-link { display: block; padding: 11px 6px; font-weight: 600; color: var(--sy-navy); text-decoration: none; border-radius: 8px; }
.sy-menu-link:hover { background: var(--sy-indigo-tint); color: var(--sy-indigo); }
.sy-menu-head { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 800; color: var(--sy-dim); margin: 14px 0 2px 6px; }
.sy-header .sy-icon-btn { border: 0; }

/* ---- Footer ---- */
.sy-footer { background: transparent; border-top: 0; color: #C5D0E6; font-size: 14px; }

.sy-footer a { color: #D5E0F2; text-decoration: none; }
.sy-footer a:hover { color: #FFFFFF; text-decoration: underline; }

.sy-footer .sy-brand img { height: 46px; background: #FFFFFF; padding: 6px 12px; border-radius: 12px; }



/* ---- Home page ---- */

.sy-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.sy-section-head h2 { font-size: clamp(22px, 3.2vw, 30px); }
.sy-step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--sy-navy); color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sy-step-no { box-shadow: 0 0 0 4px var(--sy-indigo-tint); }

.sy-menu.offcanvas { z-index: 1100; } .offcanvas-backdrop { z-index: 1095; }

/* Dropdown menus must be able to hang below the header bar on pages without a hero. */
.sy-header { overflow: visible; z-index: 1030; }



/* ---- Imagery: hero picture, banner slider, icon tiles ---- */

.sy-promo-section { background: #FFFFFF; }
.sy-promo { border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px rgba(11, 31, 63, .14); }
.sy-slide { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 44px 52px; min-height: 280px; color: #FFFFFF; position: relative; overflow: hidden; }
.sy-slide.bg-a { background: linear-gradient(115deg, #0B1F3F 0%, #0F3A75 100%); }
.sy-slide.bg-b { background: linear-gradient(115deg, #0F3A75 0%, #1C5AA8 100%); }
.sy-slide.bg-c { background: linear-gradient(115deg, #7A3A05 0%, #C9620F 100%); }
.sy-slide-text { max-width: 520px; position: relative; z-index: 1; }
.sy-slide-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #FFD9A8; margin-bottom: 8px; }
.sy-slide h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; color: #FFFFFF; margin: 0 0 8px; }
.sy-slide p { color: #E3ECF8; margin: 0 0 18px; }
.sy-slide-art { width: 300px; max-width: 38%; height: auto; flex: none; }
.sy-promo-photo { display: block; width: 100%; height: auto; }
.sy-promo .carousel-indicators { margin-bottom: 14px; }
.sy-promo .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; opacity: .5; }
.sy-promo .carousel-indicators .active { opacity: 1; background: var(--sy-amber); }
.sy-promo .carousel-control-prev, .sy-promo .carousel-control-next { width: 52px; }
@media (max-width: 767px) { .sy-slide { padding: 26px 22px 54px; min-height: 0; } .sy-slide-art { display: none; } .sy-promo .carousel-control-prev, .sy-promo .carousel-control-next { display: none; } }
.sy-art-tile { position: relative; width: 64px; height: 64px; border-radius: 18px; background: var(--sy-indigo-tint); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sy-art-tile.sm { width: 54px; height: 54px; border-radius: 15px; }

@media (prefers-reduced-motion: reduce) { .sy-promo .carousel-item { transition: none; } }


/* ---- Phone layout: two-column card grids, compact hero ---- */
.sy-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
  
  
  
  
  
  
  .sy-pill { font-size: 11px; letter-spacing: 1px; padding: 6px 10px; }
  
  
  .sy-section-head { margin-bottom: 14px; }
  .sy-section-head h2 { font-size: 21px; }
  main section.container-xl.py-5, main .container-xl.py-5 { padding-top: 30px !important; padding-bottom: 30px !important; }
  .row.g-3 > [class*="col-6"] > .sy-card, .row.g-3 > [class*="col-6"] > a.sy-card, .row.g-3 > [class*="col-6"] > article.sy-card { padding: 14px; }
  .row.g-3 > [class*="col-6"] .sy-card b, .row.g-3 > [class*="col-6"] .sy-card .fs-6 { font-size: 14.5px !important; }
  .row.g-3 > [class*="col-6"] .sy-card .small { font-size: 12.5px; }
  .row.g-3 > [class*="col-6"] .sy-card .h5 { font-size: 16px; }
  
  .sy-art-tile.sm { width: 46px; height: 46px; border-radius: 13px; }
  .sy-art-tile.sm svg { width: 28px; height: 28px; }
  .sy-art-tile { width: 54px; height: 54px; }
  
  .row.g-4 > [class*="col-6"] h3 { font-size: 14.5px; }
  .row.g-4 > [class*="col-6"] p { font-size: 13px; }
  .sy-slide h2 { font-size: 21px; }
  .sy-slide p { font-size: 14px; }
  
  
  
}
.sy-badge.ok { color: #0F5F2E; }

/* KPI tiles with the logo's orange accent (admin dashboard, reports, partner area) */
.sy-kpi { border-radius: 16px; border-top: 4px solid #F58220; box-shadow: 0 4px 14px rgba(11,31,63,.06); }

/* List / board toggle (admin requests) */
.sy-viewtoggle { display: inline-flex; gap: 0; }
.sy-viewtoggle .btn { border-radius: 0; min-height: 44px; }
.sy-viewtoggle .btn:first-child { border-radius: 12px 0 0 12px; }
.sy-viewtoggle .btn:last-child { border-radius: 0 12px 12px 0; }
.sy-viewtoggle .btn.active { background: var(--sy-navy); color: #FFFFFF; border-color: var(--sy-navy); }

/* Custom request board: columns scroll sideways on phones (snap per column), grid-like on wide screens */
.sy-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sy-kanban-col { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; background: #FFFFFF; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); display: flex; flex-direction: column; max-height: 75vh; }
@media (min-width: 768px) { .sy-kanban-col { flex-basis: 280px; } }
.sy-kanban-col.is-over { border-color: var(--sy-amber); box-shadow: 0 0 0 3px rgba(245, 130, 32, .25); }
.sy-kanban-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--sy-line); font-size: 14px; position: sticky; top: 0; background: #FFFFFF; border-radius: var(--sy-radius) var(--sy-radius) 0 0; }
.sy-kanban-cards { display: flex; flex-direction: column; gap: 10px; padding: 10px; overflow-y: auto; min-height: 80px; }
.sy-kanban-card { background: var(--sy-soft); border: 1px solid var(--sy-line); border-radius: 12px; padding: 12px; font-size: 14px; cursor: grab; touch-action: pan-y; }
.sy-kanban-card.is-dragging { opacity: .5; }
.sy-kanban-card .form-select { min-height: 44px; }
.sy-kanban-empty { text-align: center; padding: 18px 0; }

/* Premium tool upsell (DSCR / MPBF calculators) */
.sy-member-lock { border: 1.5px dashed var(--sy-amber); background: #FFF7EF; border-radius: var(--sy-radius); padding: 16px; }
.sy-member-lock .btn { min-height: 46px; }

/* Cloudflare Turnstile widget on public forms */
.sy-captcha { margin: 8px 0 12px; min-height: 65px; }
