/* V135: the same original Korea menu and overview on every viewport.
   Native phone/composer/keyboard geometry is retained; only desktop gets the
   already-established full-width shell. Hidden sources have verified menu access. */
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat {
    min-width:0!important; min-height:0!important; display:flex!important; flex-direction:column!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat > #feed {
    flex:1 1 0%!important; min-height:0!important; height:auto!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat > .imo-pq-pilot-menu[data-imo-partner-pilot-menu="1"] {
    order:-10!important; flex:0 0 auto!important; min-height:0!important; padding:0!important;
    margin:0!important; border:0!important; background:transparent!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat [data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat #imo-personal-dock-v13[data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat #imo-visual-home-v57[data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat #op-entry-v44[data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat #feed #imo-savorip-r20[data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout #app #chat #feed [data-imo-kr-menu-source="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout > aside.bp-side[data-imo-kr-menu-source="135"] {
    display:none!important;
  }
  /* Native focus owns NEWS open/close. Only duplicated source menu groups use
     the marker above. Greeting, messages, maps and result photos are unselected. */
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"] {
    width:min(1040px,calc(100vw - 40px))!important; max-width:calc(100vw - 40px)!important;
    max-height:calc(100dvh - 40px)!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"] > .bp-dialog-head {
    flex:0 0 auto!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"] > .bp-dialog-body {
    flex:1 1 auto!important; min-height:0!important; overflow-y:auto!important; overscroll-behavior:contain!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"] > .bp-dialog-body > .imo-area-menu[data-imo-kr-menu-duplicate="135"] {
    display:none!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 {
    width:100%; min-width:0; margin:12px 0 20px; padding:0; color:inherit;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 > h3 {
    margin:0 0 10px!important; font:600 15px/1.4 system-ui,sans-serif!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-grid,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-grid-v62,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] {
    display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px!important; min-width:0!important; width:100%!important; max-width:none!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-card,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-card-v62,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-card {
    box-sizing:border-box!important; display:flex!important; flex-direction:column!important;
    align-items:stretch!important; justify-content:flex-start!important; gap:0!important;
    min-width:0!important; width:100%!important; max-width:none!important; height:auto!important;
    min-height:0!important; margin:0!important; padding:0!important; overflow:hidden!important;
    border:1px solid #45617b!important; border-radius:12px!important; background:#122638!important;
    color:#eef7ff!important; text-align:center!important; font:500 13px/1.35 system-ui,sans-serif!important;
    box-shadow:none!important; transform:none!important; cursor:pointer; touch-action:pan-y;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-photo,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-photo {
    display:block!important; flex:0 0 auto!important; width:100%!important; aspect-ratio:1/1!important;
    height:auto!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important;
    background-color:#203a51!important; background-image:var(--imokr135-image)!important;
    background-size:var(--imokr135-size,cover)!important; background-position:var(--imokr135-position,center)!important;
    background-repeat:no-repeat!important; border-radius:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-card > img,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-card-image-v62 {
    display:block!important; flex:0 0 auto!important; width:100%!important; height:auto!important;
    min-height:0!important; max-height:none!important; aspect-ratio:1/1!important; object-fit:cover!important;
    margin:0!important; border-radius:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-area-photo {
    position:relative!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-area-photo .imo-area-cover {
    display:block!important; flex:0 0 auto!important; width:100%!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    aspect-ratio:1/1!important; margin:0!important; border-radius:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-area-photo .imo-area-entry-label {
    box-sizing:border-box!important; display:flex!important; align-items:center!important; justify-content:center!important;
    height:56px!important; min-height:56px!important; max-height:56px!important; flex:0 0 56px!important;
    width:100%!important; padding:6px 6px 18px!important; font:500 13px/1.35 system-ui,sans-serif!important;
    overflow:hidden!important; white-space:normal!important; overflow-wrap:anywhere!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-area-photo .imo-area-art {
    position:absolute!important; bottom:4px!important; left:4px!important; right:4px!important;
    margin:0!important; font:400 8px/1.1 system-ui,sans-serif!important;
    overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-label {
    display:flex!important; align-items:center!important; justify-content:center!important; flex:0 0 56px!important;
    min-height:56px!important; height:56px!important; width:100%!important; padding:8px!important; overflow:hidden!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-caption,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-label,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-card > strong,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-card-label-v62 {
    display:-webkit-box!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important;
    overflow:hidden!important; overflow-wrap:anywhere!important; text-overflow:ellipsis!important;
    white-space:normal!important; font:500 13px/1.35 system-ui,sans-serif!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-label,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-card > strong,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-card-label-v62 {
    box-sizing:border-box!important; height:56px!important; min-height:56px!important; max-height:56px!important;
    flex:0 0 56px!important; margin:0!important; padding:10px 8px!important; width:100%!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-links {
    display:flex; flex-wrap:wrap; gap:8px; margin-top:12px;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-links > .imokr135-card {
    flex:1 1 180px!important; width:auto!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-links .imokr135-photo {display:none!important}
  /* Korea Now's original 24px illustration is an icon, not a news photograph. */
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-card[data-kr-menu-group="news"] {
    grid-column:1/-1!important; flex-direction:row!important; align-items:center!important;
    padding:8px 14px!important; min-height:64px!important; background:#173148!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 [data-kr-menu-group="news"] .imokr135-photo {
    width:32px!important; height:32px!important; flex:0 0 32px!important; aspect-ratio:1!important;
    background-size:24px 24px!important; background-color:transparent!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 [data-kr-menu-group="news"] .imokr135-label {
    height:auto!important; min-height:40px!important; flex:1 1 auto!important; justify-content:flex-start!important; text-align:left!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 [data-kr-menu-group="news"]::after {content:'›';font-size:26px;line-height:1}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 [hidden] {display:none!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-notice {margin:8px 0;font-size:13px;color:#ffdda5}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] > .imol5-row-heading,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] > .imol5-card-row,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] > .imol5-shortcuts {display:contents!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imol5-row-heading > h3 {grid-column:1/-1!important;order:0!important;margin:8px 0 0!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] [data-imol5-topic] {order:10!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] [data-imol5-shortcut] {order:20!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imol5-more {order:30!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 {
    width:min(1040px,calc(100vw - 40px))!important; max-width:calc(100vw - 40px)!important;
    max-height:calc(100dvh - 40px)!important; padding:16px!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 > header {
    position:sticky!important; top:-16px!important; z-index:2!important; margin:-16px -16px 12px!important;
    padding:12px 16px!important; background:#101c30!important; border-bottom:1px solid #405775!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 button:focus-visible,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] button:focus-visible {
    outline:2px solid #b5dcff!important; outline-offset:2px!important;
  }

@media (min-width:768px) {

  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"]:not(.journey33-open) {
    display:flex!important; flex-direction:column!important; height:var(--bp-height,100dvh)!important;
    min-height:0!important; overflow:hidden!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] > .bp-top {
    position:sticky!important; top:0!important; z-index:920!important; flex:0 0 auto!important;
    width:100%!important; max-width:none!important; margin:0!important;
  }
  /* Existing R38 drag code reserves fixed/sticky headers. Protect the native
     inner heading/overview hit regions too, without repositioning its anchor. */
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"]:not(.imo-r9-overlay-open) #bpLayout #app .phone > .topbar,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"]:not(.imo-r9-overlay-open) #bpLayout #app #chat > #ix-korea-status-v2,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"]:not(.imo-r9-overlay-open) #bpLayout #app #chat > #imo-main-focus-toolbar-v1 {
    position:relative!important; z-index:910!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout {
    flex:1 1 0%!important; min-height:0!important; height:auto!important; width:100%!important;
    max-width:none!important; grid-template-columns:minmax(0,1fr)!important; gap:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] #bpLayout > #app {
    grid-column:1/-1!important; width:100%!important; min-width:0!important; min-height:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] > :is(#imo-press-discovery-nav,.imo-business-footer,.imo-site-footer) {
    flex:0 0 auto!important; position:relative!important; inset:auto!important;
    width:100%!important; max-width:none!important; margin:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] > #imo-press-discovery-nav {
    padding:7px 16px!important; border-radius:0!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body[data-view="chat"] > .imo-business-footer {
    padding:7px 16px!important;
  }
}

@media (min-width:768px) and (max-width:1100px) {
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-grid,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-grid-v62,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] {grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (min-width:768px) and (max-width:880px) {
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-grid,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-grid-v62,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media (max-width:767px) {
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 {
    box-sizing:border-box!important; width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(var(--bp-height,100dvh) - 16px)!important;
    border-radius:12px!important; margin:auto!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"] > .bp-dialog-body {
    padding:10px 10px 16px!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 {padding:12px!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 > header {
    top:-12px!important; margin:-12px -12px 10px!important; padding:10px 12px!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-grid,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-grid-v62,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] {
    grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-label,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-label,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body [data-imo-kr-life-grid="135"] .imokr135-life-card > strong,
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-photo-card-label-v62 {
    box-sizing:border-box!important; height:50px!important; min-height:50px!important;
    max-height:50px!important; flex:0 0 50px!important; padding:6px!important;
    font-size:12px!important; line-height:1.35!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 .imokr135-caption {font-size:12px!important}
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 .imo-area-photo .imo-area-entry-label {
    height:50px!important; min-height:50px!important; max-height:50px!important; flex:0 0 50px!important;
    font-size:12px!important;
  }
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-kr-photo-menu-v135 [data-kr-menu-group="news"] .imokr135-label {
    height:auto!important; min-height:40px!important; max-height:none!important; flex:1 1 auto!important;
  }
}
@media (max-height:600px) and (min-width:768px) and (pointer:coarse) {
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body dialog.bp-dialog[data-imo-kr-picture-menu="135"],
  html[data-imo-black][data-imo-kr-responsive-ready="135"] body #imo-photo-picker-v62 {
    max-height:calc(var(--bp-height,100dvh) - 16px)!important;
  }
}
