#main#main#main [data-cwn1-shell]:not([data-clh2-tabs]) > .welcome,
#main#main#main [data-cwn1-shell]:not([data-clh2-tabs]) > .learning-tabs {
  display: none !important;
}
#main#main#main [data-cwn1-shell]:not([data-clh2-tabs]),
#main#main#main [data-cwn1-shell] > .learning-pane[data-report-tab6="wrong"] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  gap: 0 !important;
}
#main#main#main [data-cwn1-shell] [data-wrongnote-host] {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  color-scheme: light;
  color:#101322;
  background-color:#f7f7f4;
}
/* 다크 모드에서도 학습 기록 r1처럼 밝은 종이 바탕을 씁니다 */
html[data-theme="dark"] #main#main#main [data-cwn1-shell]:not([data-clh2-tabs]) {
  color: #101322;
  background: #f7f7f4;
}
@media screen and (min-width: 900px) {
  /* A fractional-pixel overflow must not toggle the available board width. */
  #main [data-cwn1-shell] [data-wrongnote-host] { overflow-x: hidden; overflow-y: scroll; }
  @supports (scrollbar-gutter: stable) {
    #main [data-cwn1-shell] [data-wrongnote-host] { overflow-y: auto; scrollbar-gutter: stable; }
  }
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) {
    display: flex !important; flex-direction: column !important;
    height: 100vh !important; height: 100dvh !important; min-height: 0 !important;
  }
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) > #main#main#main {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto !important;
    flex: 1 1 0% !important; min-height: 0 !important; height: auto !important; overflow-x: hidden !important; overflow-y: auto !important;
  }
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) > #main#main#main > .page {
    display: flex !important; flex-direction: column !important; height: 100% !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
  }
}
@media screen and (max-width: 899px) {
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) { display: flex !important; flex-direction: column !important; height: 100vh !important; height: 100dvh !important; min-height: 0 !important; }
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) > #main#main#main { flex: 1 1 0% !important; min-height: 0 !important; height: auto !important; overflow-y: auto !important; }
  body[data-view="report"] .shell[data-cwn1-layout]:not([data-clh2-frame]) > #main#main#main > .page { flex: 0 0 auto !important; height: auto !important; max-height: none !important; }
  #main#main#main [data-cwn1-shell]:not([data-clh2-tabs]),
  #main#main#main [data-cwn1-shell] > .learning-pane[data-report-tab6="wrong"],
  #main#main#main [data-cwn1-shell] [data-wrongnote-host] { height: auto !important; max-height: none !important; overflow: visible !important; flex: none !important; }
}


/* R2 owns the welcome row, tabs and panel grid. Only mount the tools in its reserved cell. */
@media screen {
  #main#main#main [data-clh2-tabs="wrong"][data-cwn1-shell] > .cwn1-tool-dock {
    grid-area:2 / 2 !important;justify-self:end;align-self:center;
  }
  #main#main#main [data-cwn1-shell] [data-wrongnote-host] {display:block;box-sizing:border-box}
}
@media screen and (max-width:899px) {
  #main#main#main [data-clh2-tabs="wrong"][data-cwn1-shell] > .cwn1-tool-dock {
    grid-area:3 / 1 !important;justify-self:stretch;flex-wrap:wrap;justify-content:flex-start;
  }
  .cwn1-tool-dock .cwn1-cache {flex:0 0 100%}
  .cwn1-tool-dock .cwn1-btn {padding:0 10px;flex:1 1 auto;justify-content:center;font-size:12px}
}
@media print {
  [data-cwn1-shell] > .cwn1-tool-dock {display:none!important}
}

/* Native report binders still own the controls inside this pane. Present the
   board only after the bridge has mounted it, leaving those controls connected. */
#main#main#main#main .learning-pane[data-cwn2-mounted] > :not([data-wrongnote-host]) {
  display: none !important;
}
/* The earlier paginated wrong list uses four IDs and auto height to fit its
   rows. The board needs the space allocated by the shared or original desk. */
@media screen and (min-width:900px) {
  html body[data-view="report"] .shell[data-cwn1-layout] > #main#main#main#main .report-desk6[data-cwn1-shell] {
    height: 100% !important;
    flex: 1 1 auto !important;
  }
  html body[data-view="report"] #main#main#main#main .report-desk6[data-cwn1-shell] > .learning-pane[data-cwn2-mounted] {
    height: 100% !important;
    flex: 1 1 auto !important;
  }
}
@media screen and (max-width:899px) {
  body[data-view="report"] .shell[data-cwn1-layout][data-clh2-frame] > #main#main#main > .page {
    flex: 0 0 auto !important;
  }
}
