/* Hucial — Recherche universelle + polish mobile du Fil — 2026-08-20 R1 */
:root{
  --hgs-petrol:#007C78;
  --hgs-bright:#00A89F;
  --hgs-coral:#FF6257;
  --hgs-midnight:#101417;
  --hgs-ink:#171B1D;
  --hgs-slate:#667176;
  --hgs-cloud:#F5F7F7;
  --hgs-mist:#DDE3E3;
  --hgs-white:#FFFFFF;
}

/* Header connecté : logo -> recherche universelle -> navigation. */
body[data-authenticated="1"] .site-header{position:relative;z-index:1040;background:var(--hgs-white)!important;border-bottom:1px solid var(--hgs-mist)!important;box-shadow:0 3px 14px rgba(16,20,23,.055)!important}
body[data-authenticated="1"] .header-inner{position:relative;align-items:center!important;gap:12px!important;min-height:64px}
body[data-authenticated="1"] .brand-mobile-symbol{display:none}
body[data-authenticated="1"] .header-global-search{position:relative;z-index:1050;flex:0 1 480px;width:clamp(280px,32vw,480px);min-width:220px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body[data-authenticated="1"] .header-global-search-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;width:100%;height:44px;border:1px solid var(--hgs-mist);border-radius:14px;background:var(--hgs-cloud);overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
body[data-authenticated="1"] .header-global-search:focus-within .header-global-search-field{border-color:var(--hgs-petrol);background:var(--hgs-white);box-shadow:0 0 0 3px rgba(0,124,120,.14)}
body[data-authenticated="1"] .header-global-search input{width:100%!important;min-width:0!important;height:42px!important;margin:0!important;padding:0 10px 0 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--hgs-ink)!important;-webkit-text-fill-color:var(--hgs-ink)!important;box-shadow:none!important;outline:0!important;font-size:16px!important;line-height:1.2}
body[data-authenticated="1"] .header-global-search input::placeholder{color:var(--hgs-slate);opacity:1}
body[data-authenticated="1"] .header-global-search-submit{display:grid!important;place-items:center!important;width:44px!important;height:42px!important;min-width:44px!important;min-height:42px!important;margin:0!important;padding:0!important;border:0!important;border-left:1px solid var(--hgs-mist)!important;border-radius:0!important;background:transparent!important;color:var(--hgs-petrol)!important;box-shadow:none!important}
body[data-authenticated="1"] .header-global-search-submit:is(:hover,:focus-visible){background:#E8F4F3!important;color:var(--hgs-midnight)!important;outline:3px solid var(--hgs-petrol)!important;outline-offset:-3px!important;filter:none!important}

/* Suggestions : panneau léger, lisible, sans recouvrir toute l'interface. */
body[data-authenticated="1"] .header-global-search-results{position:absolute;top:calc(100% + 8px);left:0;width:min(620px,calc(100vw - 24px));max-height:min(64dvh,560px);overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--hgs-mist);border-radius:16px;background:var(--hgs-white);color:var(--hgs-ink);box-shadow:0 20px 54px rgba(16,20,23,.18);scrollbar-gutter:stable}
body[data-authenticated="1"] .header-global-search-status{margin:0;padding:7px 9px;color:var(--hgs-slate);font-size:.82rem;line-height:1.35}
body[data-authenticated="1"] .header-global-search-list{display:grid;gap:4px}
body[data-authenticated="1"] .header-global-search-group{display:grid;gap:2px;margin:0;padding:0}
body[data-authenticated="1"] .header-global-search-group+.header-global-search-group{margin-top:6px;padding-top:6px;border-top:1px solid var(--hgs-mist)}
body[data-authenticated="1"] .header-global-search-group-title{margin:0;padding:5px 9px;color:var(--hgs-slate);font-size:.72rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
body[data-authenticated="1"] .header-global-search-option{display:grid;gap:2px;min-height:46px;padding:8px 10px;border-radius:10px;color:var(--hgs-ink)!important;text-decoration:none!important;outline:0}
body[data-authenticated="1"] .header-global-search-option:hover,body[data-authenticated="1"] .header-global-search-option.is-active,body[data-authenticated="1"] .header-global-search-option:focus-visible{background:var(--hgs-cloud);box-shadow:inset 0 0 0 2px var(--hgs-petrol)}
body[data-authenticated="1"] .header-global-search-option strong{font-size:.94rem;line-height:1.25;color:inherit}
body[data-authenticated="1"] .header-global-search-option small{overflow:hidden;color:var(--hgs-slate);font-size:.78rem;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
body[data-authenticated="1"] .header-global-search-all{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:7px;padding:7px 10px;border-top:1px solid var(--hgs-mist);border-radius:10px;color:var(--hgs-petrol)!important;font-weight:800;text-decoration:none!important}
body[data-authenticated="1"] .header-global-search-all:is(:hover,:focus-visible){background:#E8F4F3;outline:3px solid var(--hgs-petrol);outline-offset:1px}

/* Page de résultats complète, comme prolongement naturel du champ de tête. */
body[data-authenticated="1"][data-route="search/index"] main{max-width:980px}
.hucial-search-page-head{max-width:780px;margin-inline:auto!important}
.hucial-search-page-head p{max-width:68ch}
.hucial-search-page-form{max-width:780px!important;margin:14px auto 20px!important;padding:14px!important}
.hucial-search-page-form>label{margin-top:0}
.hucial-search-page-form .search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.hucial-search-page-form .search-row input{min-height:46px}
.hucial-search-page-form .search-row button{min-height:46px;background:var(--hgs-petrol)!important;color:var(--hgs-white)!important}
.hucial-search-count{max-width:780px;margin:0 auto 18px;color:var(--hgs-slate)}
.hucial-search-empty{max-width:780px;margin-inline:auto!important}
.hucial-search-groups{display:grid;gap:24px}
.hucial-search-group>h2{margin:0 0 10px;color:var(--hgs-ink);font-size:1.15rem}
.hucial-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hucial-search-card{margin:0!important;padding:14px!important;box-shadow:none!important}
.hucial-search-card h3{margin:7px 0 5px;font-size:1rem}
.hucial-search-card p{margin:0;color:var(--hgs-slate);font-size:.9rem}

/* <=1100 : le header devient une ligne stable logo / recherche / hamburger. */
@media(max-width:1100px){
  body[data-authenticated="1"] .header-inner{display:grid!important;grid-template-columns:auto minmax(0,1fr) 44px!important;grid-template-rows:auto auto;gap:8px 10px!important;flex-wrap:nowrap!important;width:min(calc(100% - 24px),1480px)!important;padding-block:8px!important}
  body[data-authenticated="1"] .brand-lockup{grid-column:1;grid-row:1;min-width:0!important}
  body[data-authenticated="1"] .header-global-search{grid-column:2;grid-row:1;width:100%;max-width:none;min-width:0;justify-self:stretch}
  body[data-authenticated="1"] .nav-toggle{grid-column:3;grid-row:1;display:grid!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:10px!important;align-self:center;justify-self:end}
  body[data-authenticated="1"] .nav-shell:not(.hucial-nav-portal){grid-column:1/-1;grid-row:2;width:100%!important}
}

/* Mobile : symbole Hucial compact, recherche centrale, menu en vrai tiroir droit. */
@media(max-width:780px){
  body[data-authenticated="1"] .header-inner{grid-template-columns:44px minmax(0,1fr) 44px!important;width:100%!important;min-height:60px!important;padding:7px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))!important}
  body[data-authenticated="1"] .brand-official-stack{display:none!important}
  body[data-authenticated="1"] .brand-mobile-symbol{display:grid!important;place-items:center;width:44px;height:44px}
  body[data-authenticated="1"] .brand-mobile-symbol img{display:block;width:40px;height:40px;object-fit:contain}
  body[data-authenticated="1"] .header-global-search-field{height:44px;border-radius:12px}
  body[data-authenticated="1"] .header-global-search input{height:42px!important;padding-inline:11px 7px!important}
  body[data-authenticated="1"] .header-global-search-submit{width:40px!important;min-width:40px!important}
  body[data-authenticated="1"] .header-global-search-results{position:fixed;top:calc(60px + env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto;max-height:min(68dvh,560px);border-radius:14px}

  /* Le rail permanent ne mange plus le Fil sur téléphone : le hamburger devient le déclencheur du tiroir droit. */
  body[data-authenticated="1"] .hucial-flow-bar{display:none!important;visibility:hidden!important;pointer-events:none!important}
  body[data-authenticated="1"] .feed-app-shell{grid-template-rows:auto minmax(0,1fr)!important}
  body>#primary-navigation.hucial-nav-portal{
    top:0!important;right:0!important;bottom:0!important;left:auto!important;inset:0 0 0 auto!important;
    width:min(92vw,420px)!important;max-width:420px!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:0 12px calc(14px + env(safe-area-inset-bottom))!important;
    border-width:0 0 0 1px!important;border-radius:24px 0 0 24px!important;
    box-shadow:-18px 0 54px rgba(16,20,23,.24)!important
  }
  body>#primary-navigation.hucial-nav-portal>.nav-menu-head{margin:0 -12px!important;padding-left:16px!important;padding-right:max(12px,env(safe-area-inset-right))!important;border-radius:24px 0 0 0!important}

  /* Feed : densité légèrement supérieure, sans réduire les cibles tactiles. */
  body[data-route="social/index"] .composer-card{padding:14px!important}
  body[data-route="social/index"] .composer-heading{padding:10px 10px 0!important;gap:8px!important}
  body[data-route="social/index"] .composer-heading p{font-size:.84rem!important;line-height:1.35!important}
  body[data-route="social/index"] .composer-card-primary form{padding:10px!important;gap:8px!important}
  body[data-route="social/index"] .composer-card-primary textarea#post-body{min-height:82px!important}
  body[data-route="social/index"] .composer-media-fieldset{margin:4px 0!important;padding:9px!important;border-radius:14px!important}
  body[data-route="social/index"] .composer-media-picker{min-height:46px!important;padding:8px 10px!important}
  body[data-route="social/index"] .composer-primary-actions{gap:8px!important}
  body[data-route="social/index"] .composer-primary-actions .composer-submit{min-height:46px!important}
  body[data-route="social/index"] .composer-advanced{margin-top:2px!important}

  body[data-route="social/index"] .feed-adjust-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:11px 12px!important}
  body[data-route="social/index"] .feed-adjust-card h2{margin:0 0 2px!important;font-size:1rem!important;line-height:1.15!important}
  body[data-route="social/index"] .feed-adjust-card p{margin:0!important;font-size:.82rem!important;line-height:1.32!important;color:var(--hgs-slate)!important}
  body[data-route="social/index"] .feed-adjust-card>button{min-width:44px!important;min-height:44px!important;padding:7px 10px!important;font-size:.86rem!important;white-space:nowrap}
}

@media(max-width:390px){
  body[data-authenticated="1"] .header-inner{grid-template-columns:42px minmax(0,1fr) 42px!important;gap:6px!important;padding-inline:max(7px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-right))!important}
  body[data-authenticated="1"] .brand-mobile-symbol,body[data-authenticated="1"] .nav-toggle{width:42px!important;height:42px!important}
  body[data-authenticated="1"] .brand-mobile-symbol img{width:38px;height:38px}
  body[data-authenticated="1"] .header-global-search input{padding-inline:9px 5px!important;font-size:16px!important}
  body[data-authenticated="1"] .header-global-search input::placeholder{font-size:.92rem}
  body[data-authenticated="1"] .header-global-search-submit{width:38px!important;min-width:38px!important}
  body[data-route="social/index"] .feed-adjust-card{grid-template-columns:1fr!important;align-items:stretch!important}
  body[data-route="social/index"] .feed-adjust-card>button{width:100%!important}
  .hucial-search-page-form .search-row{grid-template-columns:1fr}
}

@media(max-width:720px){.hucial-search-grid{grid-template-columns:1fr}}

html[data-theme="dark"] body[data-authenticated="1"] .site-header,
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-results{background:var(--hgs-midnight)!important;color:var(--hgs-white)!important;border-color:var(--hgs-slate)!important}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-field{background:var(--hgs-ink);border-color:var(--hgs-slate)}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search:focus-within .header-global-search-field{background:var(--hgs-ink)}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search input{color:var(--hgs-white)!important;-webkit-text-fill-color:var(--hgs-white)!important}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search input::placeholder,
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-status,
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-option small,
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-group-title{color:var(--hgs-mist)}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-option{color:var(--hgs-white)!important}
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-option:is(:hover,.is-active,:focus-visible),
html[data-theme="dark"] body[data-authenticated="1"] .header-global-search-submit:is(:hover,:focus-visible){background:#243032!important;color:var(--hgs-white)!important}

@media(prefers-color-scheme:dark){
  html:not([data-theme="light"]) body[data-authenticated="1"] .site-header,
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-results{background:var(--hgs-midnight)!important;color:var(--hgs-white)!important;border-color:var(--hgs-slate)!important}
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-field{background:var(--hgs-ink);border-color:var(--hgs-slate)}
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search input{color:var(--hgs-white)!important;-webkit-text-fill-color:var(--hgs-white)!important}
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search input::placeholder,
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-status,
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-option small,
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-group-title{color:var(--hgs-mist)}
  html:not([data-theme="light"]) body[data-authenticated="1"] .header-global-search-option{color:var(--hgs-white)!important}
}

@media(prefers-reduced-motion:reduce){
  body[data-authenticated="1"] .header-global-search-field{transition:none!important}
}
@media(forced-colors:active){
  body[data-authenticated="1"] :is(.header-global-search-field,.header-global-search-results,.header-global-search-option,.header-global-search-all){forced-color-adjust:auto!important;border:1px solid CanvasText!important;background:Canvas!important;color:CanvasText!important}
  body[data-authenticated="1"] :is(.header-global-search input,.header-global-search-submit):focus-visible{outline:3px solid Highlight!important;outline-offset:2px!important}
}

/* Hucial — Header + haut du Fil compact mobile — 2026-08-20 R1
   Correctif visuel uniquement : les zones interactives restent >= 44 CSS px. */
@media(max-width:780px){
  /* Header : la recherche reste prioritaire ; le hamburger garde une cible 44x44 mais devient plus discret. */
  body[data-authenticated="1"] .header-inner{gap:7px!important;padding-block:6px!important}
  body[data-authenticated="1"] .nav-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:11px!important;border-radius:12px!important;background:rgba(0,168,159,.18)!important;border-color:rgba(0,124,120,.24)!important}
  body[data-authenticated="1"] .nav-toggle span:not(.sr-only){width:20px!important;max-width:20px!important;height:2px!important;justify-self:center!important;margin-inline:auto!important}
  body[data-authenticated="1"] .header-global-search-field{height:44px!important}
  body[data-authenticated="1"] .header-global-search input{height:42px!important}
  body[data-authenticated="1"] .header-global-search-submit{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}

  /* Carte de salutation : même contenu, beaucoup moins d'espace perdu. */
  body[data-authenticated="1"] .hucial-emotion-intro{gap:10px!important;max-width:none!important;margin:10px 12px 8px!important;padding:9px 11px!important;border-radius:18px!important;min-height:0!important}
  body[data-authenticated="1"] .hucial-emotion-intro .emotion-orb{flex:0 0 34px!important;width:34px!important;height:34px!important;box-shadow:0 0 0 5px rgba(145,216,218,.08),0 6px 18px rgba(104,189,194,.15)!important}
  body[data-authenticated="1"] .hucial-emotion-intro strong{margin:0!important;line-height:1.2!important}
  body[data-authenticated="1"] .hucial-emotion-intro span{margin-top:2px!important;line-height:1.32!important}

  /* Compositeur : retire uniquement les répétitions visuelles et resserre la géométrie. */
  body[data-route="social/index"] .composer-card{padding:10px!important;border-radius:15px!important}
  body[data-route="social/index"] .composer-heading{padding:4px 5px 0!important;min-height:0!important;gap:4px!important}
  body[data-route="social/index"] .composer-heading .eyebrow,
  body[data-route="social/index"] .composer-heading p,
  body[data-route="social/index"] .composer-human-mark{display:none!important}
  body[data-route="social/index"] .composer-heading h2{margin:0!important;font-size:1.22rem!important;line-height:1.16!important}
  body[data-route="social/index"] .composer-card-primary form{padding:6px 5px 7px!important;gap:6px!important}
  body[data-route="social/index"] .composer-actor{margin:0!important}
  body[data-route="social/index"] .composer-actor>span{margin-bottom:4px!important}
  body[data-route="social/index"] .composer-card-primary :is(select,textarea){margin-block:0!important}
  body[data-route="social/index"] .composer-brief-help{margin:2px 0 4px!important;line-height:1.3!important}
  body[data-route="social/index"] .composer-card-primary textarea#post-body{min-height:64px!important;padding:10px 12px!important}
  body[data-route="social/index"] .composer-progress{min-height:16px!important;margin:0!important;line-height:1.2!important}
  body[data-route="social/index"] .composer-media-fieldset{margin:2px 0!important;padding:6px!important;border-radius:12px!important}
  body[data-route="social/index"] .composer-media-fieldset legend{padding-inline:4px!important}
  body[data-route="social/index"] .composer-media-picker{min-height:44px!important;padding:7px 10px!important}
  body[data-route="social/index"] .composer-media-help{margin:3px 0 0!important}
  body[data-route="social/index"] .composer-media-help>summary{min-height:44px!important;padding:6px 9px!important}
  body[data-route="social/index"] .composer-media-status{margin:4px 0 0!important;line-height:1.3!important}
  body[data-route="social/index"] .composer-primary-actions{gap:6px!important;margin-top:1px!important}
  body[data-route="social/index"] .composer-primary-actions .composer-visibility,
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience{gap:3px!important;padding:7px 9px!important;border-radius:12px!important}
  body[data-route="social/index"] .composer-primary-actions .composer-submit{min-height:46px!important}
  body[data-route="social/index"] .composer-advanced{margin:2px 0 0!important;border-radius:12px!important}
  body[data-route="social/index"] .composer-advanced>summary{min-height:44px!important;padding:6px 9px!important}

  /* Ajuster mon fil : texte non écrasé ; CTA compact placé dessous. */
  body[data-route="social/index"] .feed-adjust-card{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:7px!important;padding:10px 12px!important}
  body[data-route="social/index"] .feed-adjust-card h2{margin:0 0 2px!important;line-height:1.18!important}
  body[data-route="social/index"] .feed-adjust-card p{margin:0!important;font-size:1rem!important;line-height:1.35!important}
  body[data-route="social/index"] .feed-adjust-card>button{justify-self:start!important;width:auto!important;min-width:44px!important;min-height:44px!important;padding:7px 12px!important;font-size:1rem!important;white-space:nowrap!important}
}
@media(max-width:390px){
  body[data-authenticated="1"] .hucial-emotion-intro{margin-inline:8px!important;padding:8px 10px!important}
  body[data-authenticated="1"] .header-global-search input::placeholder{font-size:1rem!important}
  body[data-route="social/index"] .composer-card{padding:8px!important}
  body[data-route="social/index"] .composer-heading h2{font-size:1.16rem!important}
  body[data-route="social/index"] .feed-adjust-card>button{width:auto!important;justify-self:start!important}
}


/* Hucial — Compositeur final compact mobile + suppression du compteur visuel — 2026-08-20 R1 */
@media(max-width:780px){
  body[data-route="social/index"] .feed-user-publications .feed-heading{align-items:end!important;padding:0 2px 5px!important;margin-bottom:5px!important}
  body[data-route="social/index"] .feed-master-main{gap:10px!important}
  body[data-route="social/index"] .feed-adjust-card{margin-bottom:2px!important}

  body[data-route="social/index"] .composer-card{padding:7px!important;border-radius:14px!important}
  body[data-route="social/index"] .composer-heading{padding:2px 4px 0!important;gap:2px!important}
  body[data-route="social/index"] .composer-heading h2{font-size:1.08rem!important;line-height:1.12!important}
  body[data-route="social/index"] .composer-card-primary form{padding:4px!important;gap:4px!important}

  body[data-route="social/index"] .composer-actor{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:6px!important;margin:0!important}
  body[data-route="social/index"] .composer-actor>span{margin:0!important;font-size:.82rem!important;line-height:1.2!important;white-space:nowrap!important}
  body[data-route="social/index"] .composer-actor select{min-height:44px!important;margin:0!important;padding:.48rem 2rem .48rem .65rem!important;font-size:1rem!important}

  body[data-route="social/index"] .composer-brief-help{margin:1px 0 2px!important;font-size:.88rem!important;line-height:1.25!important}
  body[data-route="social/index"] .composer-card-primary textarea#post-body{min-height:54px!important;max-height:150px!important;padding:8px 10px!important;font-size:1rem!important;line-height:1.32!important}
  body[data-route="social/index"] .composer-progress{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;min-height:14px!important;margin:-1px 1px 0!important;font-size:.72rem!important;line-height:1.1!important}

  body[data-route="social/index"] .composer-media-fieldset{margin:1px 0!important;padding:5px 6px 6px!important;border-radius:11px!important}
  body[data-route="social/index"] .composer-media-fieldset legend{padding-inline:4px!important;font-size:.86rem!important;line-height:1.1!important}
  body[data-route="social/index"] .composer-media-picker{justify-content:flex-start!important;width:auto!important;max-width:100%!important;min-height:44px!important;margin:0!important;padding:6px 10px!important;border-radius:12px!important;font-size:.9rem!important;line-height:1.15!important}
  body[data-route="social/index"] .composer-media-picker>span:last-of-type{white-space:nowrap!important}
  body[data-route="social/index"] .composer-media-help{margin:2px 0 0!important}
  body[data-route="social/index"] .composer-media-help>summary{min-height:44px!important;padding:5px 8px!important;font-size:.8rem!important;line-height:1.15!important}
  body[data-route="social/index"] .composer-media-status{margin:2px 1px 0!important;font-size:.78rem!important;line-height:1.2!important}
  body[data-route="social/index"] .composer-media-preview{gap:5px!important;margin-top:4px!important}

  body[data-route="social/index"] .composer-primary-actions{gap:4px!important;margin-top:0!important}
  body[data-route="social/index"] .composer-primary-actions .composer-visibility,
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience{gap:1px!important;padding:6px 8px!important;border-radius:11px!important;font-size:.78rem!important;line-height:1.2!important}
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience strong{font-size:.9rem!important;line-height:1.2!important}
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience small{font-size:.74rem!important;line-height:1.2!important}
  body[data-route="social/index"] .composer-primary-actions .composer-submit{min-height:46px!important;padding:6px 10px!important;font-size:1rem!important;border-radius:12px!important}
  body[data-route="social/index"] .composer-advanced{margin:1px 0 0!important}
  body[data-route="social/index"] .composer-advanced>summary{min-height:44px!important;padding:5px 8px!important;font-size:.9rem!important}
}
@media(max-width:390px){
  body[data-route="social/index"] .composer-actor{grid-template-columns:1fr!important;gap:2px!important}
  body[data-route="social/index"] .composer-actor>span{white-space:normal!important}
  body[data-route="social/index"] .composer-media-picker>span:last-of-type{white-space:normal!important}
  body[data-route="social/index"] .composer-card-primary textarea#post-body{min-height:50px!important}
}

/* HUCIAL_COMPOSER_MICRO_POLISH_20260820_R1
   Mobile-only finishing pass: give the actor selector enough usable width and
   reduce the official audience card height without shrinking touch targets. */
@media(max-width:780px){
  body[data-route="social/index"] .composer-actor{grid-template-columns:max-content minmax(0,1fr)!important;gap:5px!important}
  body[data-route="social/index"] .composer-actor>span{font-size:.78rem!important;line-height:1.15!important;letter-spacing:-.01em!important}
  body[data-route="social/index"] .composer-actor select{width:100%!important;min-width:0!important;max-width:none!important;padding:.42rem 1.45rem .42rem .55rem!important;font-size:.94rem!important;line-height:1.15!important;box-sizing:border-box!important}

  body[data-route="social/index"] .composer-primary-actions .official-agent-audience{gap:0!important;min-height:0!important;padding:4px 7px!important;border-radius:10px!important}
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience strong{font-size:.84rem!important;line-height:1.14!important}
  body[data-route="social/index"] .composer-primary-actions .official-agent-audience small{margin-top:1px!important;font-size:.70rem!important;line-height:1.12!important}
}
@media(max-width:430px){
  body[data-route="social/index"] .composer-actor{grid-template-columns:minmax(0,.82fr) minmax(9.5rem,1.18fr)!important;gap:4px!important}
  body[data-route="social/index"] .composer-actor>span{white-space:normal!important}
}
@media(max-width:350px){
  body[data-route="social/index"] .composer-actor{grid-template-columns:1fr!important;gap:2px!important}
  body[data-route="social/index"] .composer-actor select{width:100%!important}
}
