
body.luka-fullscreen-page{min-width:320px;overflow-x:hidden;background:var(--luka-page-bg)!important}
body.luka-fullscreen-page>*:not(.luka-fullscreen-content):not(#wpadminbar){max-width:100%}
.luka-app-shell,.luka-app-shell *,.luka-app-shell *::before,.luka-app-shell *::after{box-sizing:border-box}
.luka-app-shell{--luka-header-h:72px;--luka-content-max:1600px;min-height:100svh;display:flex;flex-direction:column;background:var(--luka-page-bg);color:var(--luka-text);font-family:var(--luka-font);font-size:16px;line-height:1.5;isolation:isolate}
.luka-app-shell :where(h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote){max-width:100%}
.luka-app-shell :where(img,svg,video,canvas,iframe){max-width:100%;height:auto}
.luka-app-shell :where(input,select,textarea,button){font-family:inherit}
.luka-app-shell :where(input,select,textarea){font-size:16px}
.luka-app-shell :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--luka-accent) 78%,#E8ECF2);outline-offset:3px}
.luka-app-shell :where(button,a,[role="button"]){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.luka-app-shell :where(button){min-height:44px}
.luka-app-header{position:sticky;inset-block-start:0;z-index:1000;min-height:var(--luka-header-h);display:grid;grid-template-columns:minmax(190px,auto) 1fr auto;align-items:center;gap:24px;padding:10px clamp(16px,3vw,44px);background:linear-gradient(112deg,var(--luka-header-start),var(--luka-header-end));color:#0F1D33;box-shadow:0 10px 34px var(--luka-shadow);padding-top:max(10px,env(safe-area-inset-top))}
.luka-app-brand{display:flex;align-items:center;gap:11px;min-width:0;color:#0F1D33!important;text-decoration:none!important}
.luka-app-brand>span:last-child{display:grid;min-width:0;line-height:1.08}.luka-app-brand strong{font-size:18px;font-weight:820;letter-spacing:-.015em}.luka-app-brand small{max-width:240px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:550;opacity:.78}
.luka-app-desktop-nav{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}
.luka-app-route,.luka-app-more-button,.luka-app-mobile-account{border:1px solid transparent;background:transparent;color:inherit;border-radius:0;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:720;cursor:pointer;white-space:nowrap;text-decoration:none}
.luka-app-route svg,.luka-app-more-button svg,.luka-app-mobile-account svg,.luka-app-account-button svg,.luka-app-more-footer svg{width:19px;height:19px;flex:0 0 19px;fill:currentColor}
.luka-app-header .luka-app-route:hover,.luka-app-header .luka-app-route.active,.luka-app-header .luka-app-more-button:hover,.luka-app-header .luka-app-more-button[aria-expanded="true"]{background:rgba(15,29,51,0.070);border-color:rgba(15,29,51,0.160)}
.luka-app-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.luka-view-mode-toggle{min-width:104px;border:1px solid rgba(15,29,51,0.160);border-radius:0;background:rgba(15,29,51,0.070);color:#0F1D33;padding:8px 12px;font-size:12px;font-weight:760;cursor:pointer}
.luka-view-mode-toggle[aria-pressed="true"]{background:#EEF2F7;color:var(--luka-header-start)}
.luka-app-account-button{border:1px solid rgba(15,29,51,0.160);border-radius:0;background:rgba(15,29,51,0.070);color:#0F1D33;padding:7px 10px;display:flex;align-items:center;gap:8px;cursor:pointer;min-width:0}
.luka-app-account-copy{display:grid;text-align:left;line-height:1.08;min-width:0}.luka-app-account-copy strong{max-width:140px;overflow:hidden;text-overflow:ellipsis;font-size:12px;white-space:nowrap}.luka-app-account-copy small{margin-top:4px;font-size:10px;opacity:.74}
.luka-app-main{--luka-page-gutter:0px;flex:1;width:100%;min-width:0;scroll-margin-top:calc(var(--luka-header-h) + 12px);padding-inline:0}
.luka-app-view{width:100%;min-width:0;scroll-margin-top:calc(var(--luka-header-h) + 12px)}.luka-app-view[hidden]{display:none!important}
.luka-app-view>.luka-standalone,.luka-app-view>.luka-workspace{width:100%;min-width:0}

.luka-app-shell .luka-standalone-embedded{max-width:none!important;margin:0!important;border:0!important;border-radius:0;box-shadow:none!important;min-height:calc(100svh - var(--luka-header-h));grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);background:var(--luka-page-bg)}
.luka-app-shell .luka-standalone-embedded .luka-language-bar,.luka-app-shell .luka-standalone-embedded .luka-shared-account{grid-column:1/-1}
.luka-app-shell .luka-standalone-embedded .luka-stage{padding:clamp(30px,4vw,62px);min-width:0}
.luka-app-shell .luka-standalone-embedded .luka-console{padding:clamp(18px,3vw,42px);min-width:0}
.luka-app-shell .luka-standalone-embedded .luka-transcript{min-height:clamp(280px,42vh,560px);max-height:none}
.luka-app-shell .luka-standalone-embedded .luka-composer{position:sticky;bottom:8px;z-index:4;padding:8px;border:1px solid var(--luka-border);border-radius:0;background:color-mix(in srgb,var(--luka-surface) 92%,transparent);box-shadow:0 14px 35px rgba(15,29,51,0.036);backdrop-filter:blur(14px)}
.luka-app-shell .luka-standalone-embedded .luka-composer input{min-width:0;min-height:48px}
.luka-app-shell .luka-standalone-embedded .luka-composer button{min-height:48px}

.luka-app-shell .luka-workspace-embedded{max-width:none!important;margin:0!important;border:0!important;border-radius:0;box-shadow:none!important;overflow:visible!important;background:var(--luka-page-bg);min-height:calc(100svh - var(--luka-header-h))}
.luka-app-shell .luka-workspace-embedded>.luka-workspace-head,.luka-app-shell .luka-workspace-embedded>.luka-workspace-nav{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.luka-app-shell .luka-workspace-embedded>.luka-workspace-nav{display:none!important}
.luka-app-shell .luka-workspace-context{position:sticky;top:var(--luka-header-h);z-index:50;grid-template-columns:minmax(220px,.8fr) repeat(2,minmax(200px,.6fr));padding:12px clamp(14px,3vw,40px);background:color-mix(in srgb,var(--luka-surface) 94%,transparent)!important;border-bottom:1px solid var(--luka-border)!important;box-shadow:0 8px 22px rgba(15,29,51,0.018);backdrop-filter:blur(15px)}
.luka-app-shell .luka-workspace-panel{width:min(var(--luka-content-max),100%);margin:0 auto;padding:clamp(14px,2.5vw,36px);min-width:0;background:transparent}
.luka-app-shell .luka-workspace-panel[data-panel="analysis"]{width:100%;max-width:none;padding:0;background:var(--luka-surface)}
.luka-app-shell .luka-workspace-panel>*{max-width:100%;min-width:0}

.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-context-grid label:nth-child(n+3),
.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-mortgage-mini,
.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-report,
.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-quick button:nth-child(n+5){display:none!important}
.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-context-grid{grid-template-columns:minmax(0,1fr) minmax(180px,.55fr)}
.luka-app-shell[data-view-mode="simple"] .luka-layer-details:not([open])>*:not(summary){display:none}
.luka-app-shell[data-view-mode="advanced"] .luka-view-mode-toggle{font-weight:820}

.luka-app-more[hidden]{display:none!important}.luka-app-more{position:fixed;inset:0;z-index:5000;display:grid;place-items:stretch end}
.luka-app-more-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:#F5F7FA;backdrop-filter:blur(5px);cursor:default}
.luka-app-more-panel{position:relative;z-index:1;width:min(430px,92vw);height:100%;overflow:auto;padding:24px;background:var(--luka-surface);color:var(--luka-text);box-shadow:-24px 0 75px rgba(15,29,51,0.080);padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.luka-app-more-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.luka-app-more-panel>header p{margin:0;color:var(--luka-muted);font-size:11px;font-weight:760;text-transform:uppercase;letter-spacing:.08em}.luka-app-more-panel>header h2{margin:3px 0 0;font-size:28px;letter-spacing:-.035em}.luka-app-more-close{width:44px;height:44px;border:1px solid var(--luka-border);border-radius:0;background:var(--luka-surface-alt);color:var(--luka-text);font-size:26px;line-height:1;cursor:pointer}
.luka-app-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.luka-app-more-grid .luka-app-route{min-height:92px;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;border:1px solid var(--luka-border);background:var(--luka-surface-alt);color:var(--luka-text);border-radius:0;white-space:normal}.luka-app-more-grid .luka-app-route:hover{border-color:var(--luka-primary);box-shadow:0 10px 26px rgba(15,29,51,0.030)}.luka-app-more-grid .luka-app-route svg{width:23px;height:23px}
.luka-app-more-footer{display:grid;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid var(--luka-border)}.luka-app-more-footer button{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--luka-border);border-radius:0;background:var(--luka-surface);color:var(--luka-text);padding:11px 13px;text-align:left;font-weight:720;cursor:pointer}
html.luka-more-open{overflow:hidden}

.luka-app-footer{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(280px,1.4fr);align-items:center;gap:18px;padding:22px clamp(16px,4vw,56px);background:var(--luka-surface);border-top:1px solid var(--luka-border);color:var(--luka-muted);font-size:12px;padding-bottom:max(22px,env(safe-area-inset-bottom))}
.luka-app-footer p{margin:0}.luka-app-footer nav{display:flex;gap:16px;justify-content:center}.luka-app-footer a{color:var(--luka-primary)!important;font-weight:720;text-decoration:none}.luka-app-footer a:hover{text-decoration:underline}.luka-footer-disclaimer{text-align:right;line-height:1.55}
.luka-app-mobile-nav{display:none}

.luka-app-shell :where(.gnsa-root,.gnsa-app,.luka-platform-card,.luka-advanced-card,.luka-open-data,.luka-main-panel,.luka-report-card,.luka-document-card){max-width:100%!important;min-width:0!important}
.luka-app-shell :where(.grid,.gnsa-grid,[class*="-grid"]){min-width:0}
.luka-app-shell :where(td,th,p,li,label,span,strong,small){overflow-wrap:anywhere}
.luka-app-shell table{max-width:100%;border-collapse:collapse}
.luka-app-shell .screen-reader-text:focus{clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important}

.luka-app-shell .luka-account-modal{z-index:9000}.luka-app-shell .luka-account-modal-panel{width:min(780px,calc(100vw - 24px));max-height:calc(100svh - 24px)}
@media(max-width:1180px){
  .luka-app-header{grid-template-columns:minmax(180px,auto) 1fr auto;gap:10px;padding-inline:16px}.luka-app-desktop-nav{justify-content:flex-start;overflow:auto;scrollbar-width:none}.luka-app-desktop-nav::-webkit-scrollbar{display:none}.luka-app-route,.luka-app-more-button{padding-inline:9px}.luka-app-account-copy{display:none}
}
@media(max-width:900px){
  .luka-app-shell{--luka-header-h:64px;padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .luka-app-header{grid-template-columns:1fr auto;min-height:var(--luka-header-h);padding:8px 12px}.luka-app-brand small{display:none}.luka-app-brand strong{font-size:17px}.luka-app-brand .luka-brand-logo,.luka-app-brand .luka-brand-fallback{width:38px;height:38px;flex-basis:38px;border-radius:0}
  .luka-app-desktop-nav{display:none}.luka-app-header-actions{gap:6px}.luka-view-mode-toggle{min-width:0;padding:8px 10px}.luka-app-account-button{display:none}
  .luka-app-mobile-nav{position:fixed;inset:auto 0 0;z-index:1800;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:color-mix(in srgb,var(--luka-surface) 96%,transparent);border-top:1px solid var(--luka-border);box-shadow:0 -10px 32px rgba(15,29,51,0.036);backdrop-filter:blur(18px)}
  .luka-app-mobile-nav .luka-app-route,.luka-app-mobile-nav .luka-app-more-button,.luka-app-mobile-nav .luka-app-mobile-account{min-height:58px;display:flex;flex-direction:column;gap:3px;border-radius:0;padding:6px 2px;color:var(--luka-muted);font-size:10px;font-weight:760;white-space:normal;text-align:center}.luka-app-mobile-nav .luka-app-route.active{background:var(--luka-surface-alt);color:var(--luka-primary)}.luka-app-mobile-nav svg{width:21px;height:21px}
  .luka-app-shell .luka-standalone-embedded{grid-template-columns:1fr;min-height:auto}.luka-app-shell .luka-standalone-embedded .luka-stage{padding:34px 20px}.luka-app-shell .luka-standalone-embedded .luka-orb-shell{width:150px;height:150px;margin-bottom:12px}.luka-app-shell .luka-standalone-embedded .luka-orb{width:104px;height:104px}.luka-app-shell .luka-standalone-embedded .luka-stage h1{font-size:clamp(30px,9vw,44px)}.luka-app-shell .luka-standalone-embedded .luka-console{padding:18px 14px 28px}.luka-app-shell .luka-standalone-embedded .luka-transcript{min-height:42svh}
  .luka-app-shell .luka-workspace-context{top:var(--luka-header-h);grid-template-columns:1fr 1fr;padding:10px 12px}.luka-app-shell .luka-workspace-context>div{grid-column:1/-1}.luka-app-shell .luka-workspace-panel{padding:14px 10px 28px}
  .luka-app-footer{grid-template-columns:1fr;text-align:center;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.luka-app-footer nav{order:1}.luka-app-footer>p:first-child{order:2}.luka-footer-disclaimer{order:3;text-align:center}
  .luka-app-shell .luka-account-modal{padding:0;align-items:end}.luka-app-shell .luka-account-modal-panel{width:100%;max-width:none;max-height:92svh;border-radius:0;padding:16px;padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .luka-app-shell table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:560px){
  .luka-app-header{padding-inline:10px}.luka-app-brand>span:last-child{display:none}.luka-view-mode-toggle span{font-size:11px}
  .luka-app-shell .luka-language-bar{align-items:center;padding:8px 10px}.luka-app-shell .luka-language-bar>span{font-size:10px}.luka-app-shell .luka-shared-account{padding:10px 12px}.luka-app-shell .luka-shared-account>div>span{display:none}
  .luka-app-shell .luka-standalone-embedded .luka-context-grid,.luka-app-shell[data-view-mode="simple"] .luka-standalone-embedded .luka-context-grid{grid-template-columns:1fr}.luka-app-shell .luka-composer{flex-direction:column}.luka-app-shell .luka-composer button{width:100%}
  .luka-app-shell .luka-workspace-context{grid-template-columns:1fr}.luka-app-shell .luka-workspace-context>div{display:none}.luka-app-shell .luka-workspace-context select{min-height:46px;font-size:16px}
  .luka-app-more-panel{width:100%;padding:18px 14px 92px}.luka-app-more-grid{grid-template-columns:1fr 1fr}.luka-app-more-grid .luka-app-route{min-height:86px;padding:12px}
}
@media(max-width:380px){.luka-app-more-grid{grid-template-columns:1fr}.luka-app-mobile-nav .luka-app-route,.luka-app-mobile-nav .luka-app-more-button,.luka-app-mobile-nav .luka-app-mobile-account{font-size:9px}.luka-view-mode-toggle{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.luka-app-shell *{scroll-behavior:auto!important;animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}}
@media print{.luka-app-header,.luka-app-mobile-nav,.luka-app-more,.luka-account-modal,.luka-view-mode-toggle{display:none!important}.luka-app-shell{padding:0;background:#EEF2F7}.luka-app-footer{display:block;border-top:1px solid #D8DEE7}.luka-app-footer nav{display:none}.luka-app-view[hidden]{display:none!important}}


.luka-login-gate{min-height:calc(100svh - var(--luka-header-h));display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:clamp(24px,5vw,72px);align-items:center;width:min(1280px,100%);margin:0 auto;padding:clamp(24px,6vw,84px)}
.luka-login-intro{min-width:0}.luka-login-intro .luka-eyebrow{margin:0 0 10px;color:var(--luka-primary);font-size:12px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.luka-login-intro h1{margin:0;font-size:clamp(40px,6vw,78px);line-height:.98;letter-spacing:-.055em}.luka-login-intro p:last-child{max-width:570px;color:var(--luka-muted);font-size:clamp(16px,2vw,20px);line-height:1.65}.luka-login-gate>.luka-platform-card{width:100%;margin:0;max-width:none}
.luka-app-quick-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px clamp(14px,3vw,40px);border-bottom:1px solid var(--luka-border);background:var(--luka-surface)}.luka-app-quick-tools button{min-height:40px;padding:8px 12px;border:1px solid var(--luka-border);border-radius:0;background:var(--luka-surface-alt);color:var(--luka-text);font-size:12px;font-weight:730;cursor:pointer}.luka-app-quick-tools button:hover{border-color:var(--luka-primary);color:var(--luka-primary)}
.luka-app-shell :where(.luka-platform-card,.luka-report,.luka-main-panel,.gnsa-card,.gnsa-panel){min-width:0;max-width:100%}.luka-app-shell :where(input,select,textarea){max-width:100%}.luka-app-shell :where(pre,code){max-width:100%;overflow-wrap:anywhere}.luka-app-shell :where(table){max-width:100%}
@media(max-width:900px){.luka-login-gate{grid-template-columns:1fr;align-items:start;padding:28px 16px 90px}.luka-login-intro{text-align:center}.luka-login-intro p:last-child{margin-inline:auto}.luka-app-quick-tools{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.luka-app-quick-tools button{flex:0 0 auto}}
@media(max-width:560px){.luka-login-intro h1{font-size:42px}.luka-login-gate{padding-top:22px}.luka-login-gate .luka-platform-card{padding:16px}}


.luka-app-shell,.luka-app-main,.luka-app-route{scroll-behavior:auto}
@media (max-width:900px){
  .luka-app-header,.luka-app-mobile-nav,.luka-account-modal-panel,.luka-more-panel,.luka-legal-modal-panel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

@media(max-width:720px){.luka-app-main{--luka-page-gutter:0px;padding-inline:0}.luka-app-shell .luka-workspace-panel{width:100%;max-width:none;padding-inline:0}.luka-app-shell .luka-standalone-embedded{width:100%;max-width:none}.luka-app-shell .luka-standalone-embedded .luka-stage,.luka-app-shell .luka-standalone-embedded .luka-console{border-radius:0}}



.luka-app-shell,.luka-app-main{width:100%!important;max-width:none!important;margin-inline:0!important}
.luka-app-header,.luka-app-footer{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-radius:0}


/* 6.9.6 mobile conversation + containment hardening */
@media(max-width:900px){
  html.luka-modal-open .luka-app-mobile-nav{display:none!important}
  html.luka-modal-open .luka-app-shell{padding-bottom:0!important}
  .luka-app-shell .luka-account-modal-panel{height:100dvh!important;max-height:100dvh!important;padding-bottom:calc(28px + env(safe-area-inset-bottom))!important}
  .luka-app-shell .luka-standalone-embedded .luka-stage{padding:24px 18px 22px!important}
  .luka-app-shell .luka-standalone-embedded .luka-orb-shell{width:112px!important;height:112px!important;margin-bottom:8px!important}
  .luka-app-shell .luka-standalone-embedded .luka-orb{width:78px!important;height:78px!important}
  .luka-app-shell .luka-standalone-embedded .luka-stage h1{font-size:clamp(30px,8vw,40px)!important;margin-bottom:10px!important}
  .luka-app-shell .luka-standalone-embedded .luka-lead{font-size:15px!important;line-height:1.55!important;max-width:44rem!important}
  .luka-app-shell .luka-standalone-embedded .luka-console{padding:14px 12px calc(92px + env(safe-area-inset-bottom))!important}
  .luka-app-shell .luka-standalone-embedded .luka-transcript{
    width:100%!important;min-width:0!important;height:min(52dvh,520px)!important;
    min-height:300px!important;max-height:calc(100dvh - 190px)!important;
    padding:12px!important;scroll-padding-bottom:92px!important
  }
  .luka-app-shell .luka-standalone-embedded .luka-message{width:100%!important;max-width:100%!important;min-width:0!important}
  .luka-app-shell .luka-standalone-embedded .luka-message.assistant{justify-content:stretch!important}
  .luka-app-shell .luka-standalone-embedded .luka-message.assistant>.luka-message-body{width:100%!important;max-width:100%!important;min-width:0!important}
  .luka-app-shell .luka-standalone-embedded .luka-message.user{justify-content:flex-end!important}
  .luka-app-shell .luka-standalone-embedded .luka-message.user>.luka-message-body{max-width:92%!important}
  .luka-app-shell .luka-standalone-embedded .luka-message :where(p,li,span,b,strong,a,code){overflow-wrap:anywhere;word-break:normal}
  .luka-app-shell .luka-standalone-embedded .luka-composer{
    bottom:calc(72px + env(safe-area-inset-bottom) + 6px)!important;
    z-index:1750!important;margin-top:10px!important
  }
  .luka-app-shell .luka-workspace-panel,
  .luka-app-shell .luka-workspace-panel>*,
  .luka-app-shell :where(.gnsa-card,.gnsa-panel,.gnsa-intel-card,.gnsa-intel-facts,.gnsa-intel-facts>div,.gnsa-key-lines,.gnsa-key-lines>div,.luka-advanced-card,.luka-subcard,.luka-result-grid,.luka-result-grid>section){
    min-width:0!important;max-width:100%!important
  }
  .luka-app-shell :where(.gnsa-intel-facts span,.gnsa-intel-facts b,.gnsa-intel-card,.gnsa-key-lines span,.gnsa-key-lines b,.luka-advanced-card label,.luka-advanced-card p,.luka-advanced-card small){
    overflow-wrap:anywhere!important;word-break:normal!important
  }
  .luka-app-shell .luka-advanced-card{width:100%!important;margin:12px 0!important;padding:14px 12px!important}
  .luka-app-shell .luka-field-grid,.luka-app-shell .luka-check-grid,.luka-app-shell .luka-result-grid{grid-template-columns:minmax(0,1fr)!important}
  .luka-app-shell .luka-advanced-card :where(input,select,textarea,button){min-width:0!important;max-width:100%!important}
  .luka-app-shell .luka-advanced-card table{min-width:max-content}
  .luka-app-shell .luka-workspace-context{max-width:100vw!important;overflow:hidden!important}
  .luka-app-shell .luka-workspace-context select{width:100%!important;min-width:0!important;max-width:100%!important}
}
@media(max-width:560px){
  .luka-app-shell .luka-standalone-embedded .luka-composer{flex-direction:row!important;align-items:stretch!important}
  .luka-app-shell .luka-standalone-embedded .luka-composer input{flex:1 1 auto!important;width:auto!important}
  .luka-app-shell .luka-standalone-embedded .luka-composer button{width:auto!important;min-width:76px!important;flex:0 0 auto!important}
}


/* v6.24.1 — compact property header and collision-proof mobile navigation. */
.luka-app-shell .luka-workspace-embedded>.luka-workspace-head{display:none!important}
.luka-app-shell .gnsa-topbar-compact{min-height:34px;padding-block:4px;justify-content:flex-end}
.luka-app-shell .gnsa-hero-compact{padding-block:clamp(18px,2.5vw,32px);grid-template-columns:1fr}
.luka-app-shell .gnsa-hero-compact .gnsa-h1{font-size:clamp(30px,4.2vw,54px);line-height:1.02;margin:0}
.luka-app-shell .gnsa-hero-compact .gnsa-sub{max-width:720px;margin-top:10px;font-size:clamp(15px,1.4vw,19px);line-height:1.5}
.luka-app-shell .gnsa-zoning-code{display:inline-block;margin-top:5px;font-family:var(--luka-mono,monospace);font-size:16px;color:var(--luka-primary)}
@media(max-width:900px){
  .luka-app-mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;gap:2px!important;overflow:hidden!important}
  .luka-app-mobile-nav>*{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;display:grid!important;grid-template-rows:22px minmax(14px,auto)!important;place-items:center!important;gap:2px!important;padding:5px 1px!important}
  .luka-app-mobile-nav svg{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;margin:0!important}
  .luka-app-mobile-nav span,.luka-app-mobile-nav small{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9.5px!important;line-height:1.15!important;text-align:center!important}
  .luka-app-more-grid .luka-app-route{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important}
}
@media(max-width:420px){
  .luka-app-mobile-nav{padding-left:max(3px,env(safe-area-inset-left))!important;padding-right:max(3px,env(safe-area-inset-right))!important;gap:1px!important}
  .luka-app-mobile-nav span,.luka-app-mobile-nav small{font-size:9px!important}
  .luka-app-shell .gnsa-hero-compact{padding:16px 12px}.luka-app-shell .gnsa-hero-compact .gnsa-h1{font-size:32px}
}


/* v6.24.2 mobile navigation invariants; repeated in the final theme cascade. */
@media(max-width:900px){.luka-app-shell .luka-app-desktop-nav{display:none!important}}
@media(max-width:640px){
  .luka-app-shell .luka-app-mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow:hidden!important}
  .luka-app-shell .luka-app-mobile-nav>.luka-app-route,.luka-app-shell .luka-app-mobile-nav>.luka-app-more-button,.luka-app-shell .luka-app-mobile-nav>.luka-app-mobile-account{width:auto!important;min-width:0!important;max-width:none!important;overflow:hidden!important;padding-inline:0!important}
  .luka-app-shell .luka-app-mobile-nav>*>span{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}

/* v6.98.4 global Simple/Advanced contract. Domain engines keep rendering their
   canonical evidence; Simple view only reduces presentation complexity. */
.luka-view-mode-note{margin:0 0 12px;padding:9px 12px;border:1px solid #D8DEE7;background:#F7F9FC;color:#53657D;font-size:12px;line-height:1.45}
.luka-app-shell[data-view-mode="advanced"] .luka-view-mode-note{background:#EEF2F7;color:#354862}
.luka-app-shell[data-view-mode="simple"] [data-luka-complexity="advanced"]{display:none!important}
@media(max-width:720px){.luka-view-mode-note{margin-bottom:10px;padding:8px 10px;font-size:11px}}


/* v6.98.9 — balanced sign-in gate */
.luka-login-gate{
  grid-template-columns:minmax(0,1fr) minmax(440px,540px)!important;
  gap:clamp(34px,6vw,86px)!important;
  width:min(1160px,100%)!important;
  min-height:calc(100svh - var(--luka-header-h))!important;
  padding:clamp(36px,6vw,76px) clamp(20px,4vw,54px)!important
}
.luka-login-intro{max-width:610px}
.luka-login-intro h1{
  max-width:620px;
  font-size:clamp(42px,5vw,66px)!important;
  line-height:1.02!important
}
.luka-login-intro p:last-child{
  max-width:520px!important;
  margin-top:22px;
  font-size:clamp(16px,1.6vw,19px)!important;
  line-height:1.65!important
}
@media(max-width:900px){
  .luka-login-gate{
    grid-template-columns:1fr!important;
    width:min(620px,100%)!important;
    gap:28px!important;
    padding:30px 16px 72px!important
  }
  .luka-login-intro{text-align:center;margin-inline:auto}
  .luka-login-intro h1{font-size:clamp(38px,9vw,54px)!important}
}
