/* Phone layout for market discovery and the shared utility sheets. */
#main .desk > .rail { display: none; }
#main .workspace { min-width: 0; }
#main .market-block { margin-top: 22px; }
#main .market-grid { grid-template-columns: 1fr; gap: 0; }
.market-grid .market-card {
  min-width: 0; padding: 15px 0 8px;
  background: transparent; border: 0; border-bottom: 1px solid var(--mobile-rule);
  border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.market-card .card-top { min-height: 22px; margin: 0 0 5px; gap: 8px; }
.market-card .card-type, .market-card .card-time, .market-card .live-label {
  color: var(--mobile-muted); font-size: 11px; line-height: 1.35; font-weight: 500; letter-spacing: .015em;
}
.market-card .card-type { gap: 5px; }
.market-card .card-type .icon { width: 14px; height: 14px; color: #a9a9af; }
.market-card .live-label { color: #d7a78f; }
.market-card .live-label .dot { background: #ca957a; box-shadow: none; }
.market-card .team-line { min-height: 44px; gap: 10px; }
.market-card .team-line img, .market-card .prop-name img { width: 29px; height: 29px; filter: none; }
.market-card .team-line strong, .market-card .prop-name h3 { font-size: 15px; font-weight: 570; letter-spacing: -.022em; }
.market-card .team-line .price, .market-card .team-line.secondary .price {
  display: inline-grid; place-items: center; min-width: 54px; height: 32px; padding: 0 9px;
  background: #171719; color: #f0f0f2; border: 1px solid #323236;
  border-radius: 7px; box-shadow: none; font-size: 13px; font-weight: 610; font-variant-numeric: tabular-nums;
}
.market-card .card-footer {
  min-height: 40px; gap: 6px; margin: 0; padding: 1px 0 0; border: 0; color: var(--mobile-muted); font-size: 11px;
}
.market-card .card-footer > .icon { width: 13px; height: 13px; }
.market-card .chart-mini { width: 58px; height: 19px; opacity: .85; }
.market-card .card-footer .bookmark { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; color: #aeafb4; }
.market-card .card-footer .bookmark.active { color: #e8eadf; }
.market-card .card-footer .bookmark[aria-pressed="true"] svg path:last-child { fill: currentColor; }
.market-card .prop-name { min-height: 42px; gap: 10px; margin: 5px 0 10px; }
.market-card .prop-name p { color: #b5b5bb; font-size: 12px; }
.market-card .prop-choices { gap: 8px; }
.market-card .prop-choices button, .market-card .prop-choices button:first-child {
  min-height: 44px; border: 1px solid #343438; border-radius: 8px;
  background: #131315; color: #ececee; box-shadow: none; font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums;
}
.workspace .section-heading { min-height: 44px; align-items: center; margin-bottom: 4px; }
.workspace .section-title h2 { font-size: 18px; font-weight: 590; letter-spacing: -.035em; }
.workspace .sort-button { min-height: 44px; background: none; border: 0; box-shadow: none; padding: 0 2px; color: #b6b6bc; }
.workspace .sort-button select { min-height: 44px; font-size: 12px; color: inherit; }
.workspace .tabs {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; overflow-x: auto;
  margin: 0; padding: 3px 0 9px; border-bottom: 1px solid var(--mobile-rule); scrollbar-width: none;
}
.workspace .tabs::-webkit-scrollbar { display: none; }
.workspace .sport-tab, .workspace .sport-tab.active {
  flex: none; min-height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; box-shadow: none; color: #adadb4; font-size: 12px;
}
.workspace .sport-tab .icon { display: none; }
.workspace .sport-tab.active { background: #1c1c20; color: #fff; border-color: #303034; }
#main[data-page="markets"] .hero {
  min-height: 160px; border-radius: 13px; background: #101012; border: 1px solid #2f2f32; box-shadow: none;
}
.hero > img { width: 67%; object-position: 56% 10%; filter: saturate(.55) brightness(.85); }
.hero::before { background: linear-gradient(95deg,#121214 18%,rgba(18,18,20,.9) 35%,rgba(18,18,20,.1) 73%), linear-gradient(0deg,#09090b99,transparent 55%); }
.hero::after { display: none; }
.hero .hero-content { padding: 16px; }
.hero .feature-kicker { padding: 0; background: none; border: 0; box-shadow: none; color: #c4c4c7; font: 540 10px/1.2 Inter, Arial, sans-serif; letter-spacing: .065em; }
.hero .feature-kicker .icon { display: none; }
.hero h2 { margin: 9px 0 4px; font: 620 24px/.96 Inter, Arial, sans-serif; letter-spacing: -.05em; text-shadow: none; text-transform: none; }
.hero h2 span { color: #aaaab0; font: inherit; font-size: .7em; }
.hero .hero-meta { color: #bfbfc4; font-size: 10px; }
.hero .primary-button { margin-top: 11px; min-height: 36px; padding: 0 11px; font-size: 12px; }
.hero .hero-score { font-size: 10px; background: #101012cf; border: 0; border-radius: 5px; }
.hero .hero-prob { color: #dddde0; background: #141416b8; border: 0; border-radius: 7px; }
.hero .hero-prob b { color: white; }
.hero .primary-button, #help-dialog .primary-button { color: #171719; background: #ededee; border: 0; box-shadow: none; }
.market-grid .empty-state {
  padding: 34px 16px; background: #101012; border: 1px solid var(--mobile-rule); border-radius: 12px;
}
.market-grid .empty-state h3 { font-size: 16px; font-weight: 580; }
.market-grid .empty-state p { max-width: 30ch; margin: 8px auto 0; color: var(--mobile-muted); }
.market-grid .quiet-button { min-height: 44px; padding-inline: 15px; background: #202023; color: #eeeef0; border: 1px solid #38383c; }
.feed-page .panel {
  border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: transparent;
}
.feed-page .panel-head { padding: 12px 0; gap: 8px; }
.feed-page .panel-head h2 { font-size: 15px; font-weight: 550; }
.feed-page .panel-head .panel-symbol { display: none; }
.feed-page .panel-head .label-status { font-size: 10px; color: #acacb3; letter-spacing: .035em; }
.feed-page .label-status .dot { background: #9e9ea6; box-shadow: none; }
.feed-page .mini-activity { min-height: 66px; gap: 11px; padding: 11px 0; border-color: var(--mobile-rule); }
.feed-page .mini-activity .avatar { width: 34px; height: 34px; outline: 0; }
.feed-page .mini-activity strong { font-size: 14px; font-weight: 580; }
.feed-page .mini-activity small { font-size: 11px; font-weight: 450; color: var(--mobile-muted); }
.feed-page .mini-activity > span:last-child { font-size: 14px; color: #eeeef0; font-variant-numeric: tabular-nums; }
#search-dialog, #help-dialog {
  width: min(100%,560px); max-width: 100%; max-height: 88dvh; margin: auto auto 0;
  padding: 18px var(--mobile-gutter) max(20px,env(safe-area-inset-bottom)); overflow-y: auto;
  border: 1px solid #37373d; border-bottom: 0; border-radius: 19px 19px 0 0;
  background: #141416; color: #eeeef0; box-shadow: 0 -10px 40px #0008;
}
#search-dialog::backdrop, #help-dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.small-dialog .dialog-top { margin-bottom: 12px; }
.small-dialog .dialog-top .icon-button { width: 44px; height: 44px; }
.small-dialog .dialog-top h2 { font-size: 21px; font-weight: 600; }
#search-dialog .search-input { background: #1e1e21; border-color: #414146; border-radius: 10px; }
#market-search { font-size: 16px; }
#search-dialog .search-result { min-height: 48px; padding-inline: 0; gap: 9px; justify-content: flex-start; font-size: 13px; }
#search-dialog .search-team { display: block; width: 24px; height: 24px; object-fit: contain; }
#search-dialog .search-result small { margin-left: auto; white-space: nowrap; font-size: 11px; color: var(--mobile-muted); }
#help-dialog p { color: #c1c1c7; font-size: 14px; }
#help-dialog .help-foot a, #help-dialog .primary-button { min-height: 44px; display: inline-flex; align-items: center; }
#toast { background: #ececef; color: #171719; max-width: calc(100vw - 32px); text-align: center; width: max-content; }
@media (min-width:600px) {
  #main .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
}
