/* Market presentation only. Native chart/paywall styles remain in their original assets. */
#market-app.market-modernized{
  display:block;
  gap:0;
  background:transparent;
  border-radius:0;
  --market-panel:#1a1e25;
  --market-field:#1e2026;
  --market-line:#30363d
}
#market-app.market-modernized [hidden]{
  display:none!important
}
#market-items-list{
  scroll-margin-top:16px
}
.market-filter-form button:focus-visible,.market-filter-form input:focus-visible,.market-filter-form select:focus-visible,.market-filter-form a:focus-visible,.market-mobile-floating-actions button:focus-visible,.market-scope-row button:focus-visible,.market-scope-trigger:focus-visible{
  outline:2px solid #58a6ff;
  outline-offset:3px
}
.market-modernized .zbd-market-filters-wrap{
  position:static;
  z-index:auto
}
.market-filter-form{
  margin:0
}
.market-search-input{
  display:block
}
.market-nav-link,.market-clear,.market-language-option,.market-sheet-footer>a{
  text-decoration:none
}
.market-dialog-open{
  overflow:hidden
}
#market-app.market-modernized{
  --market-panel:#1a1e25;
  --market-field:#1e2026;
  --market-line:#30363d;
  max-width:100%;
  width:100%;
  margin:auto;
  padding:1.5rem 0 42px
}
.market-heading{
  padding:.25rem 0 1.25rem;
  margin-bottom:.5rem
}
.market-kicker{
  display:block;
  margin-bottom:.4rem;
  color:#f0b90b;
  font-size:.7rem;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.12em;
  text-transform:uppercase
}
.market-title-row{
  display:flex;
  align-items:center;
  gap:10px
}
.market-title-row h1{
  margin:0;
  font-family:var(--zbd-font-sans);
  font-size:1.75rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  text-wrap:balance
}
.market-primary-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end
}
.market-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  margin:0
}
.market-field-label{
  font-size:12px;
  font-weight:600;
  color:#b8c3d1
}
.market-search-input{
  position:relative
}
.market-search-input>.bi{
  position:absolute;
  left:13px;
  top:12px;
  color:#8b949e
}
.market-search-input input{
  padding-left:38px;
  min-height:44px
}
.market-settings-trigger{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  height:44px;
  border:1px solid #3c4654;
  border-radius:10px;
  background:var(--market-panel);
  padding:8px 12px;
  font-size:13px
}
.market-round-icon{
  display:grid;
  place-items:center;
  font-size:16px
}
.market-context-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  min-height:42px
}
.market-clear{
  padding:6px 0 6px 10px;
  border:0;
  background:none;
  color:#a8b4c4;
  font-size:12px
}
.market-periods-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 24px
}
.market-primary-controls+.market-periods-row{
  margin-top:16px
}
.market-periods-row>span{
  font-size:12px;
  color:#a8b4c4
}
.market-periods-row .zbd-market-period-control{
  max-width:410px;
  flex:1
}
.market-display-dialog{
  width:min(560px,calc(100% - 48px));
  height:min(560px,90dvh);
  max-height:90dvh;
  margin:auto;
  padding:0;
  border:1px solid #4b596d;
  border-radius:16px;
  background:#1b2028;
  color:#f0f6fc;
  box-shadow:0 20px 50px #0008;
  overflow:hidden;
  color-scheme:dark
}
.market-display-dialog[open]{
  display:flex;
  flex-direction:column
}
.market-display-dialog::backdrop{
  background:rgba(3,8,15,.72)
}
.market-sheet-handle{
  display:none;
  flex-shrink:0;
  width:36px;
  height:4px;
  margin:10px auto 5px;
  border-radius:4px;
  background:#667080
}
.market-dialog-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:13px 15px 7px;
  flex-shrink:0
}
.market-dialog-heading h2{
  margin:0;
  font-size:16px;
  font-weight:700
}
.market-dialog-close{
  width:44px;
  height:44px;
  padding:0;
  border-radius:50%;
  color:#c9d4e0;
  background:#222d3a;
  border:1px solid #3c4654;
  flex-shrink:0
}
.market-dialog-section-title{
  padding:4px 16px 15px;
  border-bottom:1px solid #30363d;
  color:#e5c454;
  font-size:13px;
  font-weight:600
}
.market-dialog-body{
  display:grid;
  align-content:start;
  gap:16px;
  flex:1;
  min-height:0;
  padding:16px;
  overflow-y:auto;
  overscroll-behavior:contain
}
.market-dialog-body .form-select{
  min-height:44px;
  font-size:14px
}
.market-sheet-footer{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
  flex-shrink:0;
  padding:13px 15px;
  border-top:1px solid #30363d;
  background:#1b2028
}
.market-sheet-footer button,.market-sheet-footer>a{
  min-width:0;
  min-height:44px;
  padding:8px 10px;
  border:1px solid #3c4654;
  border-radius:10px;
  background:transparent;
  color:#c9d4e0;
  font-size:14px
}
.market-sheet-footer button:disabled{
  opacity:.45
}
.market-sheet-footer .market-sheet-return{
  border-color:#f0b90b;
  background:#f0b90b;
  color:#171b22;
  font-weight:600
}
.market-scope-dialog{
  height:min(640px,90dvh)
}
.market-scope-search{
  flex-shrink:0;
  padding:8px 16px 16px;
  border-bottom:1px solid var(--market-line)
}
.market-scope-options{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  min-height:0;
  padding:16px;
  overflow-y:auto;
  overscroll-behavior:contain
}
.market-scope-option{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  min-height:64px;
  padding:10px 12px;
  border:1px solid #3c4654;
  border-radius:10px;
  background:var(--market-field);
  color:#f0f6fc;
  text-decoration:none
}
.market-scope-option:hover{
  border-color:#8390a0;
  color:#f0f6fc
}
.market-scope-option[aria-current]{
  border-color:#b99743;
  background:#f0b90b14
}
.market-scope-option-name{
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
  font-size:14px;
  font-weight:600
}
.market-scope-current{
  flex:0 0 66px;
  color:#e5c454;
  font-size:11px;
  text-align:right
}
.market-scope-empty{
  margin:0;
  padding:24px 0;
  color:#a8b4c4;
  font-size:14px;
  text-align:center
}
/* Compact market navigation, with a visible language context. */
.market-navigation{
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid #30363d;
  margin:0 0 20px;
  min-width:0
}
.market-nav-link,.market-language-trigger{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:46px;
  margin:0;
  padding:10px 16px;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#a8b4c4;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  text-align:center
}
.market-nav-link[aria-current]{
  border-bottom-color:#f0b90b;
  color:#e5c454
}
.market-nav-link:hover,.market-language-trigger:hover{
  color:#f0f6fc;
  background:#ffffff04
}
.market-language-trigger>span{
  font-weight:400;
  color:#8b949e
}
.market-language-trigger>strong{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-weight:600;
  color:#f0f6fc
}
.market-language-trigger .zbd-flag,.market-language-option .zbd-flag{
  flex:0 0 auto;
  width:18px;
  height:14px;
  object-fit:cover;
  border:1px solid #30363d;
  border-radius:2px
}
.market-language-trigger[aria-expanded=true]{
  border-bottom-color:#f0b90b
}
.market-language-dialog{
  width:min(360px,calc(100% - 48px));
  max-height:90dvh;
  margin:auto;
  padding:0;
  border:1px solid #4b596d;
  border-radius:16px;
  background:#1b2028;
  color:#f0f6fc;
  box-shadow:0 20px 50px #0008;
  overflow:hidden;
  color-scheme:dark
}
.market-language-dialog::backdrop{
  background:rgba(3,8,15,.72)
}
.market-language-close{
  min-height:44px;
  padding:8px 6px;
  border:0;
  background:none;
  color:#a8b4c4;
  font-size:13px
}
.market-language-options{
  display:grid;
  gap:8px;
  padding:4px 16px 20px
}
.market-language-option{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #3c4654;
  border-radius:9px;
  background:#1e2026;
  color:#c9d4e0;
  text-align:left;
  font-size:14px
}
.market-language-option[aria-current]{
  border-color:#b99743;
  background:#f0b90b14;
  color:#e5c454
}
.market-language-option:hover{
  border-color:#8390a0
}
@media(max-width:767px){
  .market-navigation{
    display:grid;
    grid-template-columns:.85fr 1.7fr .75fr .8fr;
    gap:4px;
    margin-bottom:20px
  }
  .market-nav-link,.market-language-trigger{
    min-width:0;
    min-height:46px;
    padding:10px 4px;
    font-size:12px;
    gap:3px
  }
  .market-language-trigger>span{
    display:none
  }
  .market-language-dialog{
    width:100%;
    max-width:100%;
    margin:auto 0 0;
    border-radius:18px 18px 0 0
  }
  .market-language-options{
    padding-bottom:max(20px,env(safe-area-inset-bottom))
  }
}
/* Mobile actions follow the validated collection layout. */
.market-mobile-floating-actions{
  position:fixed;
  right:max(14px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:1048;
  display:flex;
  flex-direction:column;
  gap:10px
}
.market-display-fab,.market-scroll-top-fab{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #4b596d;
  border-radius:50%;
  background:#1b2028;
  color:#f0f6fc;
  box-shadow:0 5px 16px #0006;
  font-size:19px
}
@media(min-width:768px){
  .market-mobile-floating-actions{
    display:none
  }
}
/* Existing server-rendered rows retain their links, prices, sorting and pagination. */
#market-app.market-modernized .zbd-market-view-wrap{
  grid-template-columns:minmax(0,1fr);
  gap:30px
}
#market-app.market-modernized .zbd-market-view-wrap:has(>.market-scope-row){
  gap:0
}
.market-modernized .zbd-market-card{
  min-width:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible
}
.market-modernized .zbd-market-card-header{
  padding:15px 0;
  border-top:1px solid #30363d;
  border-bottom:0;
  background:none
}
.market-modernized .zbd-market-card-title{
  font-size:16px
}
.market-modernized .zbd-market-card-title>i{
  display:none
}
.market-modernized .zbd-market-card-header>a,.market-modernized .market-scope-actions>a{
  border:0;
  background:none;
  color:#a9b8ca;
  font-size:12px;
  font-weight:400;
  padding:7px 0 7px 10px;
  box-shadow:none
}
#market-app.market-modernized .table-zbd{
  table-layout:fixed;
  width:100%
}
#market-app.market-modernized .table-zbd thead th{
  --bs-table-bg:#191e26;
  box-shadow:none;
  background-color:#191e26!important;
  padding:10px 14px;
  background:#191e26;
  font-size:11px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none
}
#market-app.market-modernized .table-zbd thead th:first-child{
  width:46%;
  border-radius:8px 0 0 8px
}
#market-app.market-modernized .table-zbd thead th:last-child{
  width:20%;
  border-radius:0 8px 8px 0
}
#market-app.market-modernized #tbl-items thead th:first-child{
  width:62%
}
#market-app.market-modernized #tbl-items thead th:last-child{
  width:21%
}
#market-app.market-modernized .table-zbd tbody td{
  padding:15px 14px;
  border-color:#ffffff09;
  font-size:13px;
  font-variant-numeric:tabular-nums
}
#market-app.market-modernized .table-zbd tbody tr:hover td{
  background:#ffffff03
}
.market-modernized .zbd-mono{
  font-family:inherit
}
#market-app.market-modernized .zbd-table-thumb{
  width:40px;
  height:56px;
  object-fit:contain;
  border:0;
  background:none;
  border-radius:4px
}
.market-modernized .zbd-market-mobile-list{
  padding:0;
  gap:0
}
.market-modernized .zbd-market-row-card,.market-modernized .zbd-mobile-card{
  padding:14px 0;
  border:0;
  border-bottom:1px solid #ffffff0a;
  border-radius:0;
  background:none;
  transform:none;
  gap:7px
}
.market-modernized .zbd-market-row-top,.market-modernized .zbd-market-row-bottom{
  gap:12px
}
.market-modernized .zbd-market-row-name{
  font-size:13px;
  font-weight:600;
  line-height:1.4
}
.market-modernized .zbd-market-row-price{
  font-size:14px
}
.market-modernized .zbd-market-row-meta{
  font-size:11px;
  font-weight:400
}
.market-modernized .zbd-market-fluct-pill{
  border:0;
  background:none;
  padding:0;
  font-size:12px;
  gap:4px;
  white-space:nowrap
}
.market-modernized .zbd-market-fluct-label{
  display:none
}
#market-app.market-modernized .zbd-market-mobile-list--items .zbd-mobile-card-header{
  display:block
}
#market-app.market-modernized .zbd-mobile-card{
  gap:12px
}
#market-app.market-modernized .zbd-mobile-card-thumb{
  width:45px;
  height:63px;
  object-fit:contain;
  border:0;
  background:none;
  border-radius:4px
}
#market-app.market-modernized .zbd-mobile-card-content{
  gap:7px
}
.market-modernized .zbd-mobile-card-name{
  font-size:13px;
  font-weight:600;
  line-height:1.4
}
#market-app.market-modernized .zbd-market-mobile-list--items .zbd-mobile-card-title{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  max-width:100%;
  gap:3px
}
.market-modernized .zbd-mobile-card-price{
  font-size:14px
}
.market-modernized .zbd-mobile-card-footer{
  margin-top:7px;
  align-items:center
}
.market-modernized .market-search-empty{
  text-align:center;
  padding:32px 12px;
  color:#8b949e;
  font-size:13px
}
.market-modernized .market-scope-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:24px 0 16px
}
.market-modernized .market-series-scope-header>.zbd-market-card-title{
  flex:1 1 220px;
  min-width:0;
  overflow-wrap:anywhere
}
.market-scope-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px
}
.market-modernized .market-scope-row h2{
  min-width:0;
  overflow-wrap:anywhere;
  margin:0;
  font-size:18px;
  font-weight:700
}
.market-modernized .market-scope-row button,.market-modernized .market-scope-trigger{
  flex-shrink:0;
  min-height:40px;
  border:1px solid #3c4654;
  border-radius:8px;
  background:#1a1e25;
  padding:8px 12px;
  font-size:12px
}
.market-sheet-footer>a{
  display:flex;
  align-items:center;
  justify-content:center
}
@media(max-width:991px){
  .market-primary-controls{
    grid-template-columns:minmax(0,1fr) 54px;
    gap:8px;
    align-items:start
  }
  .market-settings-trigger{
    flex-direction:column;
    gap:4px;
    width:54px;
    height:auto;
    margin-top:24px;
    padding:0;
    border:0;
    background:transparent;
    font-size:10px;
    line-height:1.3
  }
  .market-round-icon{
    width:44px;
    height:44px;
    border:1px solid #3c4654;
    border-radius:50%;
    background:#1a1e25;
    font-size:16px
  }
}
@media(max-width:767px){
  #market-app.market-modernized{
    width:100%;
    padding:1.5rem 0 32px
  }
  .market-title-row h1{
    font-size:1.5rem
  }
  .market-search-input input{
    font-size:16px
  }
  .market-search-input input::placeholder{
    font-size:13px
  }
  .market-context-row{
    margin-top:3px;
    min-height:42px
  }
  .market-clear{
    font-size:11px
  }
  .market-periods-row{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    margin-bottom:20px
  }
  .market-periods-row .zbd-market-period-control{
    max-width:none;
    width:100%
  }
  .market-display-dialog{
    width:100%;
    max-width:100%;
    height:min(560px,90dvh);
    margin:auto 0 0;
    border-radius:18px 18px 0 0
  }
  .market-sheet-handle{
    display:block
  }
  .market-dialog-heading{
    padding-top:0
  }
  .market-dialog-body .form-select{
    font-size:16px
  }
  .market-scope-dialog{
    height:min(640px,90dvh)
  }
  .market-scope-options{
    padding-bottom:max(16px,env(safe-area-inset-bottom))
  }
  .market-scope-option{
    gap:8px
  }
  .market-modernized .zbd-market-card-title{
    font-size:15px
  }
  .market-modernized .zbd-market-card-header{
    padding:14px 0
  }
  .market-modernized .zbd-market-view-wrap{
    gap:24px
  }
  .market-modernized .market-scope-row h2{
    font-size:16px
  }
  .market-modernized .market-scope-row button,.market-modernized .market-scope-trigger{
    font-size:11px;
    padding:7px 10px
  }
  .market-mobile-floating-actions{
    bottom:calc(max(18px,env(safe-area-inset-bottom)))
  }
}
.market-modernized .market-row-identity{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0
}
.market-modernized .market-row-code{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  min-height:36px;
  border:1px solid #3c4654;
  border-radius:7px;
  padding:2px;
  color:#a8b4c4;
  font-size:10px;
  font-weight:600;
  overflow-wrap:anywhere
}
.market-modernized .zbd-market-row-card:has(.market-row-code) .zbd-market-row-bottom{
  padding-left:54px
}
.market-modernized .market-series-visual{
  display:grid;
  place-items:center;
  flex:0 0 56px;
  width:56px;
  height:40px
}
.market-modernized .market-series-visual img{
  display:block;
  width:56px;
  height:40px;
  object-fit:contain
}
.market-modernized .market-series-visual .market-row-code{
  width:100%
}
.market-modernized .zbd-market-row-card:has(.market-series-visual) .zbd-market-row-bottom{
  padding-left:68px
}
