/* DUNNO V9.0 — authoritative application normalization layer.
   Loaded after the legacy stylesheet so core app states have one final contract. */
:root{--v9-focus:2px solid currentColor}
html{color-scheme:light dark}html[data-theme="light"]{color-scheme:light}html[data-theme="dark"]{color-scheme:dark}
body.has-app-nav{overflow-x:hidden}
/* User-authored copy */
.post-body,.post-body *{font-weight:400!important;opacity:1!important}.post-body{color:#000!important}.post-body a{color:#000!important;font-weight:400!important}html[data-theme="dark"] .post-body,html[data-theme="dark"] .post-body *,html[data-theme="dark"] .post-body a{color:#fff!important}
/* Selected tabs: never inherit muted text. */
.discover-tabs a.active,.notification-tabs a.active{background:#000!important;border-color:#000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}html[data-theme="dark"] .notification-tabs a.active{background:#fff!important;border-color:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important}
.profile-tabs a.active,.settings-tabs a.active,.filter-tabs a.active{color:var(--text)!important;opacity:1!important}
/* Stable page heading flow. */
.feed-head:not(.v7-feed-tabs){height:auto!important;min-height:0!important;overflow:visible!important}.feed-head:not(.v7-feed-tabs)>div{display:grid!important;gap:5px!important}.feed-head:not(.v7-feed-tabs) h1,.settings-title h1,.v71-view-head h1{position:static!important;transform:none!important;line-height:1.12!important}
/* Controls and keyboard accessibility. */
button,input,textarea,select,a{font:inherit}button,.btn,[role="button"]{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:var(--v9-focus)!important;outline-offset:2px!important}
[hidden]{display:none!important}img,video{max-width:100%}textarea{resize:vertical}
/* Prevent narrow-screen overflow in application surfaces. */
.app-shell,.feed,.main-col,.chat-card,.modern-profile,.card{min-width:0}.post-body,.comment-row,.bubble{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:900px){.post-body{font-weight:400!important}.feed-head:not(.v7-feed-tabs){margin:0!important}.chat-card{max-width:100%!important}.v88-market-filters{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(prefers-contrast:more){.discover-tabs a.active,.notification-tabs a.active{outline:2px solid currentColor!important;outline-offset:2px!important}}

/* DUNNO V10.2 — public hero + secondary surface refinement */
/* The landing headline is plain typography: no decorative blue underline/stick. */
.hero-copy h1 span{position:static!important;background:none!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;-webkit-background-clip:border-box!important;background-clip:border-box!important}
.hero-copy h1 span::before,.hero-copy h1 span::after{content:none!important;display:none!important;background:none!important;width:0!important;height:0!important}

/* Secondary application pages share one premium surface language. */
.feed>.v67-app-form,.feed>.v88-market-filters,.feed>.create-card,.community-rules,.verify-side-card,.v8-help-hero,.v8-help-grid>.card{
  border:1px solid color-mix(in srgb,var(--text) 10%,transparent)!important;
  background:color-mix(in srgb,var(--surface) 97%,var(--text) 3%)!important;
  border-radius:24px!important;
  box-shadow:0 10px 34px rgba(0,0,0,.055)!important;
}
.feed>.v67-app-form{padding:22px!important;gap:13px!important;margin-bottom:16px!important}
.feed>.v67-app-form h2{font-size:22px!important;line-height:1.15!important;letter-spacing:-.035em!important;margin:0 0 3px!important}
.feed>.v67-app-form input:not([type=file]),.feed>.v67-app-form textarea,.feed>.v67-app-form select,.feed>.v88-market-filters input,.feed>.v88-market-filters select{
  width:100%!important;min-width:0!important;min-height:50px!important;border:1px solid color-mix(in srgb,var(--text) 11%,transparent)!important;border-radius:14px!important;background:var(--bg)!important;color:var(--text)!important;padding:12px 14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important
}
.feed>.v67-app-form textarea{min-height:104px!important;line-height:1.5!important}
.feed>.v67-app-form input::placeholder,.feed>.v67-app-form textarea::placeholder,.feed>.v88-market-filters input::placeholder{color:var(--muted)!important;opacity:.9!important}
.feed>.v67-app-form input:focus,.feed>.v67-app-form textarea:focus,.feed>.v67-app-form select:focus,.feed>.v88-market-filters input:focus,.feed>.v88-market-filters select:focus{border-color:color-mix(in srgb,var(--text) 36%,transparent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 7%,transparent)!important;background:var(--surface)!important}
.feed>.v67-app-form input[type=file]{min-height:52px!important;width:100%!important;padding:7px!important;border:1px dashed color-mix(in srgb,var(--text) 18%,transparent)!important;border-radius:14px!important;background:var(--bg)!important;color:var(--muted)!important}
.feed>.v67-app-form input[type=file]::file-selector-button{min-height:36px!important;margin-right:10px!important;padding:0 13px!important;border:0!important;border-radius:10px!important;background:var(--text)!important;color:var(--inverse)!important;font-weight:750!important;cursor:pointer!important}
.feed>.v67-app-form>.btn{min-height:50px!important;border-radius:14px!important;font-weight:800!important;box-shadow:none!important}
.feed>.v88-market-filters{padding:12px!important;gap:9px!important;margin:0 0 18px!important}
.feed>.v88-market-filters .btn{min-height:48px!important;border-radius:13px!important;padding-inline:18px!important}

/* Event / Marketplace result cards */
.v6-cards{gap:14px!important}.v6-cards>.v67-event,.v6-cards>.v67-listing{border:1px solid color-mix(in srgb,var(--text) 10%,transparent)!important;background:var(--surface)!important;border-radius:22px!important;box-shadow:0 8px 28px rgba(0,0,0,.045)!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.v6-cards>.v67-event:hover,.v6-cards>.v67-listing:hover{transform:translateY(-2px)!important;border-color:color-mix(in srgb,var(--text) 22%,transparent)!important;box-shadow:0 14px 38px rgba(0,0,0,.075)!important}
.v67-event>small:first-child,.v67-listing>small:first-of-type{display:inline-flex!important;width:max-content!important;max-width:calc(100% - 36px)!important;padding:6px 9px!important;border-radius:9px!important;background:color-mix(in srgb,var(--text) 6%,transparent)!important;color:var(--muted)!important;font-size:11px!important;font-weight:750!important}
.v67-event h3,.v67-listing h3{font-size:19px!important;line-height:1.25!important;letter-spacing:-.035em!important;margin-top:11px!important}.v67-event p,.v67-listing p{font-size:14px!important;line-height:1.58!important;color:var(--muted)!important}.v67-event>span,.v67-listing>a:last-child{font-size:12px!important;color:var(--muted)!important}
.v67-actions .btn{min-height:40px!important;border-radius:12px!important}
.v67-listing>img{aspect-ratio:16/9!important;max-height:none!important;background:var(--surface-2)!important}

/* Empty states belong inside the same visual system. */
.v6-cards>.empty{grid-column:1/-1!important;padding:42px 24px!important;border:1px dashed color-mix(in srgb,var(--text) 15%,transparent)!important;border-radius:22px!important;background:color-mix(in srgb,var(--surface) 97%,var(--text) 3%)!important;text-align:center!important}.v6-cards>.empty h3{margin:0 0 5px!important;font-size:18px!important}.v6-cards>.empty p{margin:0!important;color:var(--muted)!important}

@media(max-width:900px){
 .feed>.v67-app-form,.feed>.v88-market-filters,.feed>.create-card{margin-left:0!important;margin-right:0!important;border-left:1px solid color-mix(in srgb,var(--text) 10%,transparent)!important;border-right:1px solid color-mix(in srgb,var(--text) 10%,transparent)!important;border-radius:20px!important;box-shadow:none!important}
 .feed>.v67-app-form{padding:17px!important}.v67-inline{grid-template-columns:minmax(0,1fr) 100px!important}.v6-cards>.v67-event,.v6-cards>.v67-listing{border-radius:18px!important;box-shadow:none!important}
}
@media(max-width:560px){
 .v67-inline{grid-template-columns:1fr!important}.feed>.v88-market-filters{grid-template-columns:1fr!important}.feed>.v88-market-filters input:first-child,.feed>.v88-market-filters .btn{grid-column:auto!important}.feed>.v67-app-form h2{font-size:20px!important}
}

/* DUNNO 10.3.10 — Alerts mobile header/filter navigation: isolated from global feed headings */
@media(max-width:900px){
 .alerts-page{min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important}
 .alerts-page .alerts-head{position:relative!important;top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;padding:14px 12px!important;box-sizing:border-box!important;background:var(--surface,var(--bg))!important;border:1px solid var(--card-border)!important;border-radius:16px!important;backdrop-filter:none!important}
 .alerts-page .alerts-head>div{display:block!important;min-width:0!important;width:100%!important}
 .alerts-page .alerts-head h1{font-size:23px!important;line-height:1.2!important;margin:0 0 5px!important}
 .alerts-page .alerts-head small{display:block!important;line-height:1.45!important;white-space:normal!important}
 .alerts-page .notification-tabs{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;align-items:center!important;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:2px 0 5px!important;box-sizing:border-box!important}
 .alerts-page .notification-tabs::-webkit-scrollbar{display:none}
 .alerts-page .notification-tabs a{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;white-space:nowrap!important;min-height:39px!important;padding:8px 13px!important;font-size:13px!important;line-height:1.2!important}
 .alerts-page .alerts-head .v6-read-all{display:flex!important;justify-content:flex-start!important;align-items:center!important;width:100%!important;min-width:0!important;margin:0!important}
 .alerts-page .alerts-head .v6-read-all button{min-height:40px!important;max-width:100%!important;padding:8px 12px!important;white-space:normal!important;text-align:left!important}
 .alerts-page .notification-list,.alerts-page .notification-row{min-width:0!important;max-width:100%!important}
 .alerts-page .notification-row button{min-width:0!important;max-width:100%!important}
 .alerts-page .notification-row p{overflow-wrap:anywhere!important}
}
