/* HM242 | The announcement occupies a real row; compact management hubs; locked-size banner. */

/* One bar directly after the header, in the workspace's normal document flow.
   Do not offset the content with a guess at the banner's height. */
body.hm185-app .app-shell .workspace > .site-announcement-runtime[data-announcement-scope="internal"] {
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;
  z-index:auto!important;display:flex;width:100%;max-width:100%;min-height:36px;
  margin:0;padding:5px 12px;border-radius:0;box-shadow:none;box-sizing:border-box;
  border-bottom:1px solid rgba(255,255,255,.12);overflow:hidden;
}
body.hm185-app .app-shell .workspace > .site-announcement-runtime[hidden] {display:none!important}
body.site-announcement-internal-visible.hm185-app .app-shell .page-content {padding-top:22px!important}
@media(max-width:760px){
  body.hm185-app .app-shell .workspace > .site-announcement-runtime[data-announcement-scope="internal"]{min-height:40px;padding:6px 9px}
  body.site-announcement-internal-visible.hm185-app .app-shell .page-content{padding-top:16px!important}
}

/* Section hubs and Settings hubs: headings remain readable, but no extra hero/stat/search cards. */
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section){padding-bottom:18px}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-crumbs{margin:0 0 7px;font-size:.75rem;line-height:1.5}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero {
  min-height:62px;display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;
  justify-content:space-between;gap:7px 14px;padding:10px 15px;margin:0 0 10px;
  border:1px solid #dfe7f1;border-radius:14px;background:#fff;box-shadow:0 2px 12px rgba(25,54,94,.025);
}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero h1{font-size:20px!important;line-height:1.5!important;margin:0}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-copy{min-width:0;flex:1 1 auto}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-copy p{display:none}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat{
  min-width:0;min-height:0;flex:0 0 auto;display:flex;flex-direction:row;gap:6px;
  padding:4px 10px;border:1px solid #e1ebf5;border-radius:99px;background:#f3f8ff;
}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat strong{font-size:.88rem;line-height:1.5}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat span{font-size:.71rem}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search{
  display:flex;align-items:center;gap:10px;min-height:0;margin:0 0 13px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;
}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search>label{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search-field{
  flex:1 1 auto;min-width:0;min-height:46px;height:46px;border-radius:12px;background:#fff;
}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search-status{display:none;margin:0;white-space:nowrap}
body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section).hm242-search-active .hm239-search-status{display:inline-block}
body.hm185-app .app-shell .page-content .hm239-section-groups{gap:12px}
body.hm185-app .app-shell .page-content .hm239-section-group{gap:6px}
body.hm185-app .app-shell .page-content .hm239-group-title{margin:4px 0 0;padding-right:10px;border-right-width:2px}
body.hm185-app .app-shell .page-content .hm239-group-title h2{font-size:17px!important;line-height:1.5!important}
body.hm185-app .app-shell .page-content .hm239-group-title p{display:none}
body.hm185-app .app-shell .page-content .section-hub-grid{gap:9px}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card{
  min-height:72px!important;padding:10px 13px!important;border-radius:13px;gap:10px;box-shadow:0 2px 10px rgba(26,59,92,.025);
}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-icon{width:38px;height:38px;border-radius:11px}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-icon svg{width:19px;height:19px}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-copy{min-width:0;gap:2px}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-copy strong{font-size:15px!important;line-height:1.5!important}
body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-copy small{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px!important;line-height:1.5!important;
}
body.hm185-app .app-shell .page-content .hm239-hub-grid{gap:9px}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card{
  min-height:76px!important;padding:11px 12px!important;grid-template-columns:39px minmax(0,1fr) 12px;
  gap:10px;border-radius:13px;box-shadow:0 2px 10px rgba(26,59,92,.025);
}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-icon{width:39px;height:39px;border-radius:11px}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-icon svg{width:20px;height:20px}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-text{gap:2px}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-text strong{font-size:15px!important;line-height:1.5!important}
body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-text small{
  font-size:12px!important;line-height:1.45!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
@media(max-width:760px){
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-crumbs{margin-bottom:5px;font-size:.7rem}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero{
    min-height:52px;padding:8px 11px;margin-bottom:8px;border-radius:12px;gap:7px;
  }
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero h1{font-size:18px!important}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat{padding:3px 8px}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat strong{font-size:.83rem}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-hero-stat span{font-size:.68rem}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search{margin-bottom:10px;flex-wrap:wrap;gap:4px}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section) .hm239-search-field{min-height:44px;height:44px}
  body.hm185-app .app-shell .page-content :is(.hm239-hub,.hm239-section).hm242-search-active .hm239-search-status{font-size:.7rem}
  body.hm185-app .app-shell .page-content .hm239-section-groups{gap:10px}
  body.hm185-app .app-shell .page-content .hm239-section-group{gap:6px}
  body.hm185-app .app-shell .page-content .hm239-group-title{margin:1px 0 0}
  body.hm185-app .app-shell .page-content .hm239-group-title h2{font-size:16px!important}
  body.hm185-app .app-shell .page-content .hm239-section .section-hub-card{min-height:66px!important;padding:9px 11px!important;gap:9px}
  body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-icon{width:35px;height:35px}
  body.hm185-app .app-shell .page-content .hm239-section .section-hub-card-copy strong{font-size:15px!important}
  body.hm185-app .app-shell .page-content .hm239-hub .hm239-card{min-height:68px!important;padding:9px 11px!important;gap:9px;grid-template-columns:36px minmax(0,1fr) 12px}
  body.hm185-app .app-shell .page-content .hm239-hub .hm239-card-icon{width:36px;height:36px}
}

/* The overall banner (main + companion + internal edges) uses the dashboard container width. */
body.hm185-app .app-shell .page-content .hm185-dashboard>.hm185-banner{
  display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;grid-column:1/-1;margin:0;border:0!important;
}
body.hm185-app .app-shell .page-content .razavi-greeting-v41{
  --hm242-banner-height:140px;--hm242-photo-width:110.4px;
  display:grid;grid-template-columns:var(--hm242-photo-width) minmax(0,1fr);
  width:100%;max-width:100%;min-width:0;height:var(--hm242-banner-height)!important;
  box-sizing:border-box;overflow:hidden;
}
body.hm185-app .app-shell .page-content .razavi-greeting-v41--without-companion{grid-template-columns:minmax(0,1fr)}
body.hm185-app .app-shell .page-content .razavi-greeting-v41__photo{min-width:0;min-height:0;overflow:hidden;border-right:0!important;box-shadow:inset -2px 0 #d6b36e}
body.hm185-app .app-shell .page-content .razavi-greeting-v41__photo img{
  width:100%;height:100%;object-fit:cover;object-position:center;
}
body.hm185-app .app-shell .page-content .razavi-greeting-v41__message img{
  width:100%;height:100%;object-fit:contain;object-position:center;
}
body.hm185-app .app-shell .page-content .razavi-greeting-v41.banner-preview-mobile{--hm242-banner-height:88px;--hm242-photo-width:68.8px}
body.hm185-app .app-shell .page-content .razavi-greeting-v41.banner-preview-desktop{--hm242-banner-height:140px;--hm242-photo-width:110.4px}
@media(max-width:760px){
  body.hm185-app .app-shell .page-content .hm185-dashboard .razavi-greeting-v41{--hm242-banner-height:88px;--hm242-photo-width:68.8px}
  body.hm185-app .app-shell .page-content .razavi-greeting-v41.banner-preview-desktop{--hm242-banner-height:140px;--hm242-photo-width:110.4px}
}

/* Admin image editor: clear fixed specifications, accessible touch crop, accurate preview. */
body.hm185-app .app-shell .page-content .banner-editor-v242{gap:14px}
.banner-editor-v242 .banner-v242-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:8px 0}
.banner-editor-v242 .banner-v242-switch{display:inline-flex;align-items:center;gap:9px;font-weight:800}
.banner-editor-v242 .banner-v242-switch input{width:18px;height:18px;accent-color:#386ec7}
.banner-editor-v242 .banner-v242-specs{display:flex;flex-wrap:wrap;gap:7px}
.banner-editor-v242 .banner-v242-specs>span{border:1px solid #e0e8f3;border-radius:9px;background:#f3f7fd;padding:6px 9px;color:#53647a;font-size:12px}
.banner-editor-v242 .banner-v242-specs b{color:#2c4665}
.banner-editor-v242 .banner-v242-main-thumb{height:115px}
.banner-editor-v242 .banner-v242-comp-thumb{height:125px}
.banner-editor-v242 .banner-v242-file-hint{font-size:12px;color:#63748b;line-height:1.65;min-height:0;margin:0}
.banner-editor-v242 .banner-v242-crop-editor{display:grid;gap:10px;padding:12px;border:1px solid #d7e4f1;border-radius:13px;background:#f5f9ff}
.banner-editor-v242 [hidden]{display:none!important}
.banner-editor-v242 .banner-v242-editor-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.banner-editor-v242 .banner-v242-editor-top select{width:min(270px,100%)}
.banner-editor-v242 .banner-v242-instruction{font-size:12px;line-height:1.7;color:#5c6f85;margin:0}
.banner-editor-v242 #bannerCropCanvas{display:block;max-width:100%;width:min(220px,100%);height:auto;aspect-ratio:4/5;touch-action:none;cursor:grab;justify-self:center;border:2px solid #abc6e3;border-radius:10px;background:#102e31}
.banner-editor-v242 #bannerCropCanvas:active{cursor:grabbing}
.banner-editor-v242 #bannerCropCanvas:focus-visible{outline:3px solid #488ede;outline-offset:3px}
.banner-editor-v242 .banner-v242-zoom{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.banner-editor-v242 .banner-v242-zoom input{flex:1 1 120px;min-width:100px;accent-color:#356db6}
.banner-editor-v242 .banner-v242-preview-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.banner-editor-v242 .banner-v242-preview-title b{color:#28425d}
.banner-editor-v242 .banner-preview-tools{margin:0}
.banner-editor-v242 .banner-preview-viewport{background:#edf2f8;border-radius:11px}
.banner-editor-v242 .banner-tip{margin:0}
@media(max-width:760px){
  .banner-editor-v242 .banner-v242-specs{width:100%}
  .banner-editor-v242 .banner-v242-specs>span{flex:1 1 140px}
  .banner-editor-v242 .banner-v242-editor-top{align-items:stretch}
  .banner-editor-v242 .banner-v242-editor-top select{width:100%}
}
@media(prefers-reduced-motion:reduce){
  body.hm185-app .app-shell .page-content .hm239-hub .hm239-card,
  body.hm185-app .app-shell .page-content .hm239-section .section-hub-card{transition:none;transform:none}
}
@media print{body.hm185-app .app-shell .workspace > .site-announcement-runtime{display:none!important}}
