@layer woryvo-theme {
html:root body :is(.wv-shell .wv-u10-broadcasts,.pm-featureline)>a.wv-feature-link {
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;height:44px!important;min-height:44px!important;min-width:0!important;
 gap:2px!important;padding:4px 6px!important;border:1px solid var(--pl-line,#454b56)!important;
 border-radius:12px!important;background:var(--pl-soft,#252b35)!important;color:var(--pl-ink,#f5f1e9)!important;
 font:650 11px/1.2 system-ui,sans-serif!important;text-decoration:none!important;white-space:nowrap!important;
}
html:root body :is(.wv-shell .wv-u10-broadcasts,.pm-featureline)>a.wv-feature-link>svg {
 width:18px!important;height:18px!important;flex:0 0 18px!important;color:var(--pl-link,#ffca78)!important;
 fill:none!important;stroke:currentColor!important;
}
html:root body :is(.wv-shell .wv-u10-broadcasts,.pm-featureline)>a.wv-feature-link[aria-current=page] {
 background:var(--pl-accent,#ffbf63)!important;color:var(--pl-on-accent,#24190b)!important;
}
html:root body :is(.wv-shell .wv-u10-broadcasts,.pm-featureline)>a.wv-feature-link[aria-current=page]>svg {color:inherit!important}
html:root body a.wv-feature-link:focus-visible {outline:2px solid var(--pl-link,#ffca78)!important;outline-offset:2px!important}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 html:root body.premium-mobile .pm-featureline {display:grid!important;grid-template-columns:minmax(0,1.65fr) repeat(3,minmax(0,1fr))!important;gap:4px!important}
 html:root body.premium-mobile .pm-featureline .u03-top-hey {flex-direction:row!important;justify-content:flex-start!important;gap:5px!important;padding:6px 8px!important;border-radius:12px!important}
 html:root body.premium-mobile .pm-featureline .u03-top-hey span {font:650 11px/1.2 system-ui,sans-serif!important}
}
}
@layer woryvo-theme {
 html:root body #mainDialog.wv-notice-dialog{color-scheme:dark;background:#1b1f27!important;color:#f5f1e9!important;border:1px solid #58606d!important;border-radius:20px!important;box-shadow:0 24px 70px #0009!important;max-height:calc(100dvh - 40px)!important;overflow:auto!important}
 html:root body #mainDialog.wv-notice-dialog>:is(header,.modal-head){background:#252b35!important;color:#f5f1e9!important;border-bottom:1px solid #58606d!important}
 html:root body #mainDialog.wv-notice-dialog :is(h2,p){color:#f5f1e9!important;-webkit-text-fill-color:#f5f1e9!important}
 html:root body #mainDialog.wv-notice-dialog #dialogBody{background:#1b1f27!important;color:#f5f1e9!important;display:grid;gap:12px}
 html:root body #mainDialog.wv-notice-dialog .e01-card{background:#252b35!important;border:1px solid #58606d!important;color:#f5f1e9!important;border-radius:14px!important;padding:16px!important;margin:0!important}
 html:root body #mainDialog.wv-notice-dialog .e01-card[data-read=false]{border-inline-start:3px solid #ffbf63!important}
 html:root body #mainDialog.wv-notice-dialog .wv-notice-state{display:inline-block;font-size:12px;font-weight:650;color:#ffca78!important;-webkit-text-fill-color:#ffca78!important}
 html:root body #mainDialog.wv-notice-dialog .e01-card[data-read=true] .wv-notice-state{color:#c3bfba!important;-webkit-text-fill-color:#c3bfba!important}
 html:root body #mainDialog.wv-notice-dialog :is(button,a){min-height:44px;background:#303744!important;color:#ffca78!important;-webkit-text-fill-color:#ffca78!important;border:1px solid #687180!important;border-radius:10px!important}
 html:root body #mainDialog.wv-notice-dialog .e01-card button{background:#ffbf63!important;color:#24190b!important;-webkit-text-fill-color:#24190b!important;border-color:#ffbf63!important}
 html:root body #mainDialog.wv-notice-dialog :is(button,a):focus-visible{outline:3px solid #ffca78!important;outline-offset:3px}
 html:root body #mainDialog.wv-notice-dialog [role=status]{font-size:13px;line-height:1.55}
}

/* Shared brand and top controls. Keep real page actions and their handlers. */
@layer woryvo-theme {
 html:root body :is(#center .mc-top,.wv-unified-header){background:#191d24!important;background-image:none!important;color:#f5f1e9!important;border-color:#454b56!important;box-shadow:none!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:visible!important;text-decoration:none!important;font:850 15px/1.3 system-ui,sans-serif!important;letter-spacing:.02em!important;color:#ffca78!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand img{width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:0!important;object-fit:contain!important;background:transparent!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand :is(b,.wv-brand-name,.wv-wordmark){display:inline!important;visibility:visible!important;font:inherit!important;letter-spacing:inherit!important;white-space:nowrap!important;color:#ffca78!important;background:none!important;-webkit-text-fill-color:#ffca78!important;filter:none!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.pm-main-menu,.pm-utilities>button,.pm-chat-link,.wv-main-menu,.wv-mobile-search,.wv-mobile-messages,.wv-mobile-notices,.wv-mobile-account,.mc-icon,.mc-options>summary){display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;max-width:44px!important;flex:0 0 44px!important;padding:8px!important;border:1px solid #454b56!important;border-radius:12px!important;background:#252b35!important;color:#f5f1e9!important;box-shadow:none!important;position:relative!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.pm-main-menu,.pm-utilities,.wv-shell-top,.mc-icon,.mc-options>summary) svg{width:22px!important;height:22px!important;color:inherit!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.pm-account-mark,.wv-shell-account){border-radius:50%!important;padding:3px!important;overflow:hidden!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.pm-account-mark,.wv-shell-account) img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important}
 html:root body :is(#center .mc-top,.wv-unified-header) [hidden]{display:none!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.wv-shell-badge,.u03-badge){background:#ffbf63!important;color:#24190b!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.wv-shell-voice,.u03-top-hey){background:#252b35!important;border:1px solid #454b56!important;color:#f5f1e9!important;border-radius:12px!important;height:44px!important;min-height:44px!important;gap:5px!important;padding:6px 8px!important;box-sizing:border-box!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.wv-shell-voice,.u03-top-hey) :is(strong,span){font:650 11px/1.2 system-ui,sans-serif!important;color:#f5f1e9!important}
 html:root body :is(#center .mc-top,.wv-unified-header) :is(.wv-shell-voice,.u03-top-hey) svg{width:18px!important;height:18px!important;color:#ffca78!important}
 @media(max-width:700px),(max-width:1000px) and (max-height:500px){
  html:root body :is(#center .mc-top,.wv-unified-header){padding-inline:6px!important}
  html:root body .wv-unified-header .pm-topline{display:grid!important;grid-template-columns:44px minmax(0,1fr) repeat(4,44px)!important;gap:3px!important;height:52px!important;align-items:center!important;background:transparent!important}
  html:root body .wv-unified-header .pm-utilities{display:contents!important}
  html:root body .wv-unified-header .pm-topline>.u03-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important}
  html:root body .wv-unified-header .wv-shell-top{grid-template-columns:44px minmax(0,1fr) repeat(4,44px)!important;grid-template-rows:52px 44px!important;column-gap:3px!important;row-gap:0!important;background:transparent!important}
  html:root body .wv-unified-header .wv-shell-voice{grid-area:2/1/3/3!important;width:100%!important;max-width:none!important}
  html:root body .wv-unified-header .wv-u10-broadcasts{grid-area:2/3/3/7!important;gap:3px!important}
  html:root body .wv-unified-header .pm-featureline{grid-template-columns:calc(100% - 188px) repeat(3,minmax(0,1fr))!important;gap:3px!important;height:44px!important;margin-bottom:4px!important;background:transparent!important}
  html:root body #center .mc-top.wv-unified-header{min-height:52px!important;gap:3px!important;padding-block:4px!important}
 }
 @media(max-width:350px){
  html:root body :is(#center .mc-top,.wv-unified-header){padding-inline:4px!important}
  html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand{font-size:13px!important;gap:3px!important}
  html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand img{width:22px!important;height:22px!important;flex-basis:22px!important}
  html:root body :is(#center .mc-top,.wv-unified-header) :is(.pm-main-menu,.pm-utilities>button,.pm-chat-link,.wv-main-menu,.wv-mobile-search,.wv-mobile-messages,.wv-mobile-notices,.wv-mobile-account,.mc-icon,.mc-options>summary){width:40px!important;min-width:40px!important;max-width:40px!important;flex-basis:40px!important}
  html:root body .wv-unified-header :is(.pm-topline,.wv-shell-top){grid-template-columns:40px minmax(0,1fr) repeat(4,40px)!important;column-gap:2px!important}
  html:root body .wv-unified-header .pm-featureline{grid-template-columns:calc(100% - 168px) repeat(3,minmax(0,1fr))!important}
 }
 @media(forced-colors:active){html:root body :is(#center .mc-top,.wv-unified-header) .wv-unified-brand :is(b,.wv-brand-name,.wv-wordmark){color:ButtonText!important;-webkit-text-fill-color:ButtonText!important}}
}

@layer woryvo-theme {
 html:root body :is(#center .mc-top,.wv-unified-header) a.wv-feature-link.wv-feature-link>svg{color:#ffca78!important}
 html:root body :is(#center .mc-top,.wv-unified-header) a.wv-feature-link.wv-feature-link[aria-current=page]>svg{color:#24190b!important}
 html:root body :is(#center .mc-top,.wv-unified-header) a.wv-feature-link>span{white-space:normal!important;text-align:center!important;line-height:1.1!important;max-width:100%!important}
 @media(max-width:700px),(max-width:1000px) and (max-height:500px){
  html:root body :is(#center .mc-top,.wv-unified-header) :is(a.wv-feature-link,.wv-shell-voice,.u03-top-hey){height:52px!important;min-height:52px!important}
  html:root body .wv-unified-header .pm-featureline{height:52px!important}
  html:root body .wv-unified-header .wv-shell-top{grid-template-rows:52px 52px!important}
 }
}

@layer woryvo-theme {
 @media(max-width:350px){html:root body :is(#center .mc-top,.wv-unified-header) a.wv-feature-link{padding-inline:3px!important;font-size:10px!important}}
}

/* Compact utility buttons keep visible guest text inside their touch target. */
@layer woryvo-theme {
 html:root body .wv-unified-header .wv-mobile-search .wv-shell-search-label{display:none!important}
 html:root body .wv-unified-header .wv-shell-login.wv-mobile-account{font:650 11px/1.15 system-ui,sans-serif!important;white-space:normal!important;overflow-wrap:normal!important;padding:4px!important;text-align:center!important}
}


/* Five shared destinations, with readable labels on narrow phones. */
@layer woryvo-theme {
 html:root body .wv-unified-header .pm-featureline{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 html:root body .wv-unified-header .wv-u10-broadcasts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 @media(max-width:700px),(max-width:1000px) and (max-height:500px){
 html:root body .wv-unified-header .wv-shell-voice{grid-area:2/1/3/7!important;width:20%!important}
 html:root body .wv-unified-header .wv-u10-broadcasts{grid-area:2/1/3/7!important;width:80%!important;justify-self:end!important;min-width:0!important}
 html:root body .wv-unified-header :is(.wv-shell-voice,.u03-top-hey){flex-direction:column!important;justify-content:center!important;font-size:10px!important;padding:3px!important}
 html:root body .wv-unified-header .pm-featureline>*{min-width:0!important;width:auto!important}
 html:root body .wv-unified-header a.wv-feature-link{font-size:10px!important;padding-inline:2px!important}
 }
}

/* R30: each shortcut owns one cell; the voice button must never size by its label. */
@layer woryvo-theme {
 html:root body.premium-mobile :is(#center .mc-top,.wv-unified-header) .pm-featureline,
 html:root body :is(#center .mc-top,.wv-unified-header) .pm-featureline{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;height:56px!important;min-width:0!important;align-items:stretch!important}
 html:root body.premium-mobile :is(#center .mc-top,.wv-unified-header) .pm-featureline .pm-voice-slot{display:flex!important;min-width:0!important;width:100%!important;max-width:100%!important}
 html:root body.premium-mobile :is(#center .mc-top,.wv-unified-header) .pm-featureline .u03-top-hey,
 html:root body :is(#center .mc-top,.wv-unified-header) .pm-featureline .u03-top-hey{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;height:56px!important;min-height:56px!important;padding:3px 2px!important;gap:3px!important;white-space:normal!important;overflow:hidden!important}
 html:root body.premium-mobile :is(#center .mc-top,.wv-unified-header) .pm-featureline .u03-top-hey span,
 html:root body :is(#center .mc-top,.wv-unified-header) .pm-featureline .u03-top-hey span{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important;text-align:center!important;font:650 10px/1.15 system-ui,sans-serif!important;overflow-wrap:normal!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .pm-featureline>a.wv-feature-link{height:56px!important;min-height:56px!important;padding:3px 2px!important}
 @media(max-width:700px),(max-width:1000px) and (max-height:500px){
 html:root body.wv-mobile-shell-ready :is(#shell,#writing-header,#u10-header,#meydan-header,.wv-unified-header).wv-shell .wv-shell-top .wv-shell-voice{grid-area:2/1/3/7!important;width:calc((100% - 16px)/5)!important;min-width:0!important;max-width:calc((100% - 16px)/5)!important;height:56px!important;min-height:56px!important;justify-self:start!important;flex-direction:column!important;justify-content:center!important;padding:3px 2px!important;white-space:normal!important;overflow:hidden!important;gap:3px!important}
 html:root body.wv-mobile-shell-ready .wv-unified-header .wv-shell-voice strong{font-size:10px!important;line-height:1.15!important;text-align:center!important;white-space:normal!important;max-width:100%!important}
 html:root body.wv-mobile-shell-ready .wv-unified-header .wv-shell-top .wv-u10-broadcasts{grid-area:2/1/3/7!important;width:calc((100% - 16px)/5*4 + 12px)!important;max-width:calc((100% - 16px)/5*4 + 12px)!important;min-width:0!important;gap:4px!important;justify-self:end!important;margin:0!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .wv-shell-top{grid-template-rows:52px 56px!important}
 html:root body :is(#center .mc-top,.wv-unified-header) .wv-u10-broadcasts>a.wv-feature-link{height:56px!important;min-height:56px!important;padding:3px 2px!important}
 }
}
