/* All selectors are homepage-scoped; the existing platform theme stays intact. */
body:has(.snm-home) { background: #f7f8f5; }
.app-shell:has(.snm-home) > .page { width: min(1440px, calc(100% - 64px)); padding: 34px 0 40px; }
body[data-theme="snm-assembly"] .snm-home { color: #0a1523; font-family: var(--snm-font); }
body[data-theme="snm-assembly"] .snm-home *, .snm-home *::before, .snm-home *::after { box-sizing: border-box; }
body[data-theme="snm-assembly"] .snm-home :is(h1,h2,h3,p) { margin: 0; }
body[data-theme="snm-assembly"] .snm-home :is(h1,h2,h3) { color: #0a1523; }
body[data-theme="snm-assembly"] .snm-home .home-label { color: #4e6c8c; font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
body[data-theme="snm-assembly"] .snm-home .home-heading { margin: 0 12px 26px; }
body[data-theme="snm-assembly"] .snm-home h1 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 750; letter-spacing: -.035em; line-height: 1.12; margin: 12px 0 12px; text-wrap: balance; }
body[data-theme="snm-assembly"] .snm-home .home-intro { color: #506b8c; font-size: 19px; line-height: 1.55; }
body[data-theme="snm-assembly"] .snm-home .home-products { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: 14px; }
body[data-theme="snm-assembly"] .snm-home .home-work { position: relative; isolation: isolate; overflow: hidden; border-radius: 10px; background: #effcda; min-height: 370px; }
body[data-theme="snm-assembly"] .snm-home .home-buildings { position: absolute; z-index: -1; right: 0; bottom: 0; width: 43%; height: 100%; object-fit: contain; object-position: right bottom; mask-image: linear-gradient(to right, transparent, #000 20%); }
body[data-theme="snm-assembly"] .snm-home .home-work-copy { position: relative; padding: 32px 28px; }
body[data-theme="snm-assembly"] .snm-home .home-work h2 { font-size: clamp(30px, 3.1vw, 46px); font-weight: 750; line-height: 1.12; letter-spacing: -.035em; margin: 18px 0 24px; max-width: 74%; }
body[data-theme="snm-assembly"] .snm-home .home-work h2 span { display: block; }
body[data-theme="snm-assembly"] .snm-home .home-description { color: #4e6783; line-height: 1.55; font-size: 16px; }
body[data-theme="snm-assembly"] .snm-home .home-work .home-description { max-width: 67%; }
body[data-theme="snm-assembly"] .snm-home .home-work-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; max-width: 74%; }
body[data-theme="snm-assembly"] .snm-home :is(.home-start,.home-link) { display: inline-flex; align-items: center; gap: 10px; color: #123b66; font-weight: 650; font-size: 14px; line-height: 1.45; text-decoration: none; min-height: 44px; }
body[data-theme="snm-assembly"] .snm-home .home-link span:first-child { text-decoration: underline; text-decoration-color: #a6becd; text-underline-offset: 5px; }
body[data-theme="snm-assembly"] .snm-home .home-start { color: #122908; background: #c6ee72; border-radius: 8px; padding: 13px 18px; white-space: nowrap; }
body[data-theme="snm-assembly"] .snm-home .home-start:hover { background: #b6e35b; }
body[data-theme="snm-assembly"] .snm-home .home-link:hover { color: #071d38; text-decoration: none; }
body[data-theme="snm-assembly"] .snm-home .home-link:hover span:first-child { text-decoration-color: currentColor; }
body[data-theme="snm-assembly"] .snm-home :is(a,button):focus-visible { outline: 3px solid #215b8a; outline-offset: 4px; }
body[data-theme="snm-assembly"] .snm-home ::selection { background: #d8efae; color: #071d38; }
body[data-theme="snm-assembly"] .snm-home .home-icon { display: inline-flex; flex: 0 0 auto; width: 20px; height: 20px; }
body[data-theme="snm-assembly"] .snm-home .home-icon svg { width: 100%; height: 100%; }
body[data-theme="snm-assembly"] .snm-home .home-secondary { display: grid; grid-template-rows: 1fr 1fr; border: 1px solid #e0e6e9; border-radius: 10px; background: #fff; padding: 0 26px; min-width: 0; }
body[data-theme="snm-assembly"] .snm-home .home-product { position: relative; display: flex; align-items: center; min-width: 0; padding: 25px 0; }
body[data-theme="snm-assembly"] .snm-home .home-product + .home-product { border-top: 1px solid #e9edf0; }
body[data-theme="snm-assembly"] .snm-home .home-product-copy { position: relative; z-index: 1; padding-right: 78px; width: 100%; }
body[data-theme="snm-assembly"] .snm-home .home-product h2 { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.18; letter-spacing: -.03em; font-weight: 750; margin: 9px 0 10px; }
body[data-theme="snm-assembly"] .snm-home .home-product .home-description { font-size: 14px; }
body[data-theme="snm-assembly"] .snm-home .home-product .home-link { margin-top: 14px; }
body[data-theme="snm-assembly"] .snm-home .home-product-art { position: absolute; right: -6px; top: 50%; width: 82px; height: 82px; transform: translateY(-50%); pointer-events: none; }
body[data-theme="snm-assembly"] .snm-home .home-chat-back { display: grid; gap: 7px; align-content: center; width: 58px; height: 42px; border-radius: 8px; background: #f0f3f5; padding: 10px; }
body[data-theme="snm-assembly"] .snm-home .home-chat-back i { display: block; height: 3px; background: #9dafbd; border-radius: 3px; }
body[data-theme="snm-assembly"] .snm-home .home-chat-back i:last-child { width: 65%; }
body[data-theme="snm-assembly"] .snm-home .home-chat-front { position: absolute; right: 0; top: 26px; width: 54px; height: 41px; border-radius: 7px; background: #ddf3b3; display: flex; align-items: center; justify-content: center; gap: 6px; }
body[data-theme="snm-assembly"] .snm-home .home-chat-front::after { content: ''; position: absolute; bottom: -8px; right: 9px; border-top: 10px solid #ddf3b3; border-left: 10px solid transparent; }
body[data-theme="snm-assembly"] .snm-home .home-chat-front i { width: 4px; height: 4px; border-radius: 50%; background: #8ca26c; }
body[data-theme="snm-assembly"] .snm-home .home-guide-sheet { display: grid; gap: 7px; align-content: start; width: 65px; height: 82px; padding: 16px 11px; border-radius: 8px; background: #f0f3f5; }
body[data-theme="snm-assembly"] .snm-home .home-guide-sheet i { height: 3px; border-radius: 3px; background: #a5b6c4; }
body[data-theme="snm-assembly"] .snm-home .home-guide-sheet i:nth-last-child(-n+2) { width: 45%; }
body[data-theme="snm-assembly"] .snm-home .home-guide-book { position: absolute; right: 0; bottom: -1px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 8px; background: #ddf3b3; color: #152a09; }
body[data-theme="snm-assembly"] .snm-home .home-guide-book .home-icon { width: 27px; height: 27px; }
body[data-theme="snm-assembly"] .snm-home .home-process { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 20px; padding: 32px 12px; }
body[data-theme="snm-assembly"] .snm-home .home-process > h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
body[data-theme="snm-assembly"] .snm-home .home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
body[data-theme="snm-assembly"] .snm-home .home-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
body[data-theme="snm-assembly"] .snm-home .home-step-icon { width: 44px; height: 44px; padding: 11px; background: #edf0ef; border-radius: 50%; color: #152b3b; }
body[data-theme="snm-assembly"] .snm-home .home-steps h3 { color: #173a60; font-size: 13px; font-weight: 650; line-height: 1.3; margin: 5px 0 7px; }
body[data-theme="snm-assembly"] .snm-home .home-steps p { color: #536f89; font-size: 12px; line-height: 1.5; }
body[data-theme="snm-assembly"] .snm-home .home-step-arrow { position: absolute; top: 14px; right: -23px; width: 16px; height: 16px; color: #789bb7; }
body[data-theme="snm-assembly"] .snm-home .home-continue { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; border: 1px solid #e0e6e9; background: #fff; border-radius: 10px; padding: 24px 28px; }
body[data-theme="snm-assembly"] .snm-home .home-continue h2 { font-size: 28px; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 8px; }
body[data-theme="snm-assembly"] .snm-home .home-continue p { font-size: 15px; line-height: 1.5; color: #506b8c; }
body[data-theme="snm-assembly"] .snm-home .home-drafts { flex-basis: 100%; display: grid; gap: 10px; }
body[data-theme="snm-assembly"] .snm-home .home-drafts .draft-card { margin: 0; box-shadow: none; }
@media (max-width: 1150px) {
  body[data-theme="snm-assembly"] .snm-home .home-work h2 { font-size: 35px; }
  body[data-theme="snm-assembly"] .snm-home .home-product-copy { padding-right: 0; }
  body[data-theme="snm-assembly"] .snm-home .home-product-art { display: none; }
  body[data-theme="snm-assembly"] .snm-home .home-process { grid-template-columns: 1fr; }
  body[data-theme="snm-assembly"] .snm-home .home-steps { gap: 32px; }
}
@media (max-width: 800px) {
  .app-shell:has(.snm-home) > .page { width: calc(100% - 32px); padding-top: 26px; }
  body[data-theme="snm-assembly"] .snm-home .home-heading { margin-left: 4px; margin-right: 4px; }
  body[data-theme="snm-assembly"] .snm-home .home-products { grid-template-columns: 1fr; }
  body[data-theme="snm-assembly"] .snm-home .home-work { min-height: 360px; }
  body[data-theme="snm-assembly"] .snm-home .home-work h2 { font-size: 38px; }
  body[data-theme="snm-assembly"] .snm-home .home-secondary { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 24px; }
  body[data-theme="snm-assembly"] .snm-home .home-product + .home-product { border-top: 0; }
  body[data-theme="snm-assembly"] .snm-home .home-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  body[data-theme="snm-assembly"] .snm-home .home-step-arrow { display: none; }
}
@media (max-width: 620px) {
  .app-shell:has(.snm-home) > .page { width: calc(100% - 24px); padding-top: 24px; }
  .app-shell:has(.snm-home) > .app-header { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .app-shell:has(.snm-home) > .app-header .brand { flex: 1 1 100%; }
  .app-shell:has(.snm-home) > .app-header .main-nav { display: flex; order: 3; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 2px; }
  .app-shell:has(.snm-home) > .app-header .header-actions { display: flex; flex-direction: row; margin: 0; flex: 1 1 100%; justify-content: flex-start; gap: 10px; }
  .app-shell:has(.snm-home) > .app-header .nav-link { width: auto; flex: 0 1 auto; min-height: 44px; padding: 10px; }
  .app-shell:has(.snm-home) > .app-header .header-actions :is(a,button) { width: auto; flex: 0 1 auto; min-height: 44px; display: inline-flex; align-items: center; }
  body[data-theme="snm-assembly"] .snm-home h1 { font-size: 34px; max-width: 12ch; }
  body[data-theme="snm-assembly"] .snm-home .home-intro { font-size: 16px; }
  body[data-theme="snm-assembly"] .snm-home .home-work { min-height: 0; display: flex; flex-direction: column; }
  body[data-theme="snm-assembly"] .snm-home .home-work-copy { padding: 24px 20px; }
  body[data-theme="snm-assembly"] .snm-home .home-work h2 { font-size: 32px; max-width: 100%; margin: 14px 0 18px; }
  body[data-theme="snm-assembly"] .snm-home .home-work h2 span { display: inline; }
  body[data-theme="snm-assembly"] .snm-home .home-work h2 span + span::before { content: ' '; }
  body[data-theme="snm-assembly"] .snm-home .home-work .home-description { max-width: 100%; }
  body[data-theme="snm-assembly"] .snm-home .home-work-actions { max-width: 100%; margin-top: 20px; gap: 8px 18px; align-items: flex-start; }
  body[data-theme="snm-assembly"] .snm-home .home-buildings { position: relative; z-index: 0; order: 1; align-self: flex-end; height: 230px; width: 65%; object-fit: contain; object-position: right bottom; mask-image: linear-gradient(to left, #000 75%, transparent); }
  body[data-theme="snm-assembly"] .snm-home .home-secondary { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  body[data-theme="snm-assembly"] .snm-home .home-product + .home-product { border-top: 1px solid #e9edf0; }
  body[data-theme="snm-assembly"] .snm-home .home-product { padding: 25px 0; }
  body[data-theme="snm-assembly"] .snm-home .home-product-copy { padding-right: 0; }
  body[data-theme="snm-assembly"] .snm-home .home-product h2 { font-size: 25px; max-width: 17ch; }
  body[data-theme="snm-assembly"] .snm-home .home-product .home-description { font-size: 15px; }
  body[data-theme="snm-assembly"] .snm-home .home-product-art { display: none; }
  body[data-theme="snm-assembly"] .snm-home .home-process { padding: 28px 8px; gap: 22px; }
  body[data-theme="snm-assembly"] .snm-home .home-steps { grid-template-columns: 1fr; gap: 22px; }
  body[data-theme="snm-assembly"] .snm-home .home-steps h3 { font-size: 15px; }
  body[data-theme="snm-assembly"] .snm-home .home-steps p { font-size: 14px; }
  body[data-theme="snm-assembly"] .snm-home .home-step-icon { width: 46px; height: 46px; }
  body[data-theme="snm-assembly"] .snm-home .home-continue { padding: 24px 20px; gap: 14px; }
  body[data-theme="snm-assembly"] .snm-home .home-continue h2 { font-size: 27px; }
  body[data-theme="snm-assembly"] .snm-home .home-continue p { font-size: 15px; }
  body[data-theme="snm-assembly"] .snm-home .home-drafts .draft-card { min-width: 0; padding: 12px 0; flex-direction: column; align-items: stretch; overflow-wrap: anywhere; }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .app-shell:has(.snm-home) > .app-header .main-nav { display: flex; flex-wrap: wrap; }
  .app-shell:has(.snm-home) > .app-header .nav-link { width: auto; flex: 0 1 auto; }
  .app-shell:has(.snm-home) > .app-header .header-actions { flex-direction: row; }
  .app-shell:has(.snm-home) > .app-header .header-actions .button { width: auto; flex: 0 1 auto; }
}