/* CCR Client Dashboard bridge: SO-style dashboard overlay + standalone viewer
   2026-05-04 DO/SO harmonization pass: this file replaces the earlier wide custom
   dashboard modal styling with the same shell grammar used by the Settings Overlay. */

.ccr-client-dash-layer[hidden],
.ccr-client-submodal[hidden]{
  display:none !important;
}

body.ccr-client-dash-open{
  overflow:hidden;
}
body.ccr-client-dash-open .mobile-bottom-dock{
  display:none !important;
}

/* Overlay shell: intentionally mirrors .settings-shell-layer/card/backdrop. */
.ccr-client-dash-layer{
  position:fixed;
  inset:0;
  z-index:9800;
  color:var(--text, rgba(238,244,250,0.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-dash-backdrop,
.ccr-client-submodal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.34);
  backdrop-filter:blur(8px) saturate(1.08);
}
.ccr-client-dash-shell{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px) + 12px);
  left:max(24px, env(safe-area-inset-left, 0px) + 16px);
  right:max(24px, env(safe-area-inset-right, 0px) + 16px);
  bottom:max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  width:min(580px, calc(100vw - 48px));
  max-height:none;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(18px) saturate(1.12);
}
.ccr-client-dash-shell-head{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.93), rgba(23,33,46,.91));
  flex:0 0 auto;
}
.ccr-client-dash-shell-head > div{
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
}
.ccr-client-dash-shell-kicker{
  margin:0 0 6px;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(215,227,236,.66);
}
.ccr-client-dash-shell-head h2{
  margin:0;
  font-size:1.3rem;
  line-height:1.04;
  color:var(--text, rgba(240,245,252,.94));
  letter-spacing:-.018em;
}
.ccr-client-dash-shell-subtitle{
  margin:8px 0 0;
  color:var(--text-2, rgba(203,216,229,.70));
  line-height:1.5;
  font-size:.95rem;
}
.ccr-client-dash-close{
  position:absolute;
  top:max(14px, env(safe-area-inset-top, 0px) + 2px);
  right:max(14px, env(safe-area-inset-right, 0px) + 2px);
  min-width:38px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:8;
  background:rgba(9,15,23,.72);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
.ccr-client-dash-scroll{
  display:block;
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overflow-anchor:none;
  scrollbar-gutter:stable both-edges;
  scrollbar-color:rgba(120,140,162,.72) rgba(5,10,18,.92);
}

/* Dashboard content: SO section/card grammar, not a separate visual language. */
.ccr-client-dash{
  display:grid;
  gap:14px;
  padding:16px 18px 20px;
}
.ccr-client-dash-head,
.ccr-client-dash-card{
  display:grid;
  gap:12px;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.030);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  min-width:0;
}
.ccr-client-dash-head{
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:16px;
}
.ccr-client-dash-kicker{
  margin:0 0 6px;
  color:rgba(215,227,236,.60);
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.68rem;
  font-weight:700;
}
.ccr-client-dash-head h2{
  margin:0;
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
  font-size:clamp(1.0rem, 2.1vw, 1.18rem);
  line-height:1.08;
  letter-spacing:-.03em;
  color:rgba(244,248,252,.94);
  overflow-wrap:anywhere;
}
.ccr-client-dash-subline{
  margin:8px 0 0;
  color:var(--text-2, rgba(203,216,229,.68));
  font-size:.88rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.ccr-client-dash-status{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
  color:var(--text-2, rgba(203,216,229,.68));
}
.ccr-client-dash-status span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.20);
  background:rgba(232,214,164,.060);
  color:rgba(232,214,164,.90);
  font-size:.70rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.035em;
}
.ccr-client-dash-status small{
  color:rgba(203,216,229,.54);
  font-size:.70rem;
  line-height:1.35;
  text-align:left;
}
.ccr-client-dash-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ccr-client-dash-section-head h3{
  margin:0;
  color:rgba(232,214,164,.90);
  text-shadow:0 0 16px rgba(232,214,164,.08);
  font-size:.9rem;
  line-height:1.2;
  letter-spacing:.01em;
  text-transform:none;
}
.ccr-client-dash-stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.ccr-client-dash-stat,
.ccr-client-dash-note-card,
.ccr-client-dashboard-debug-grid div,
.ccr-client-dashboard-debug-pills em{
  border:1px solid rgba(255,255,255,.06);
  background:rgba(11,17,25,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.ccr-client-dash-stat{
  min-width:0;
  padding:10px 11px;
  border-radius:14px;
}
.ccr-client-dash-stat span,
.ccr-client-dash-note-card h4,
.ccr-client-dashboard-debug-grid span,
.ccr-client-dashboard-debug-pills > span{
  display:block;
  margin:0 0 5px;
  color:rgba(203,216,229,.58);
  font-size:.68rem;
  line-height:1.25;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.ccr-client-dash-stat strong{
  display:block;
  min-width:0;
  color:rgba(240,245,252,.90);
  font-size:.88rem;
  line-height:1.28;
  font-weight:650;
  overflow-wrap:anywhere;
}
.ccr-client-dash-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.ccr-client-dash-action,
.ccr-client-dashboard-settings-row .settings-mini-btn{
  appearance:none;
  min-width:0;
  min-height:36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.030);
  color:var(--text, rgba(238,244,250,.90));
  padding:8px 11px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:.72rem;
  font-weight:700;
  line-height:1.18;
  letter-spacing:.055em;
  text-align:center;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.ccr-client-dash-action:hover,
.ccr-client-dash-action:focus-visible,
.ccr-client-dashboard-settings-row .settings-mini-btn:hover,
.ccr-client-dashboard-settings-row .settings-mini-btn:focus-visible{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
  color:var(--text, rgba(238,244,250,.96));
  outline:none;
}
.ccr-client-dash-action--primary,
.ccr-client-dash-action.is-on{
  border-color:rgba(232,214,164,.24);
  background:rgba(232,214,164,.075);
  color:rgba(232,214,164,.96);
}
.ccr-client-dashboard-settings-row .settings-mini-btn.is-active{
  background:rgba(79,163,255,.12);
  border-color:rgba(79,163,255,.26);
  color:#dcecff;
}
.ccr-client-dash-action.is-off{
  opacity:.70;
}
.ccr-client-dash-resources,
.ccr-client-dash-notes{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.ccr-client-dash-resource{
  position:relative;
  min-width:0;
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(11,17,25,.18);
  color:rgba(238,244,250,.88);
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
.ccr-client-dash-resource:hover,
.ccr-client-dash-resource:focus-visible{
  background:rgba(255,255,255,.030);
  border-color:rgba(232,214,164,.20);
  color:rgba(244,232,190,.98);
  outline:none;
}
.ccr-client-dash-resource__label{
  min-width:0;
  width:100%;
  font-size:.88rem;
  line-height:1.32;
  font-weight:650;
  overflow-wrap:anywhere;
}

/* S27 — Admin dashboard resource removal control. */
.ccr-client-dash-resource-row{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:8px;
}
.ccr-client-dash-resource-row.has-delete{
  grid-template-columns:minmax(0,1fr) 30px;
}
.ccr-client-dash-resource-delete{
  width:30px;
  min-width:30px;
  min-height:30px;
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(232,214,164,.18);
  border-radius:999px;
  background:rgba(13,20,31,.46);
  color:rgba(232,214,164,.86);
  font:800 1rem/1 Inter,"Noto Sans JP",system-ui,sans-serif;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.ccr-client-dash-resource-delete:hover,
.ccr-client-dash-resource-delete:focus-visible{
  background:rgba(122,42,42,.22);
  border-color:rgba(232,214,164,.32);
  color:#fff2c9;
  outline:none;
  transform:translateY(-1px);
}
@media (max-width:640px){
  .ccr-client-dash-resource-row.has-delete{
    grid-template-columns:minmax(0,1fr) 28px;
    gap:7px;
  }
  .ccr-client-dash-resource-delete{
    width:28px;
    min-width:28px;
    min-height:28px;
    font-size:.94rem;
  }
}
.ccr-client-dash-new{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  padding:2px 6px;
  border-radius:999px;
  background:rgba(95,219,187,.12);
  color:rgba(126,245,216,.92);
  border:1px solid rgba(126,245,216,.22);
  font-size:.58rem;
  letter-spacing:.08em;
  font-weight:800;
}
.ccr-client-dash-note-card{
  min-height:96px;
  padding:12px;
  border-radius:14px;
}
.ccr-client-dash-note-card h4{
  color:rgba(232,214,164,.72);
}
.ccr-client-dash-note-card p{
  margin:0;
  color:rgba(232,238,244,.82);
  line-height:1.55;
  font-size:.90rem;
  overflow-wrap:anywhere;
}
.ccr-client-dash-empty,
.ccr-client-dash-loading,
.ccr-client-dashboard-settings-debug,
.ccr-client-dashboard-fallback-warning{
  margin:0;
  color:var(--text-2, rgba(203,216,229,.68));
  line-height:1.55;
  font-size:.90rem;
}
.ccr-client-dash-empty,
.ccr-client-dash-loading{
  padding:13px 14px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
}
.ccr-client-dash-loading{
  margin:16px 18px 20px;
}
.ccr-client-dash-loading.is-error{
  color:rgba(255,198,198,.92);
  border-color:rgba(255,130,130,.20);
}

/* Client Dashboard list inside SO. */
.ccr-client-dashboard-settings-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ccr-client-dashboard-settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:rgba(11,17,25,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014);
}
.ccr-client-dashboard-settings-row__main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.ccr-client-dashboard-settings-row__main strong{
  color:rgba(238,244,250,.92);
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-settings-row__main span{
  color:rgba(203,216,229,.62);
  font-size:.80rem;
  line-height:1.35;
}
.ccr-client-dashboard-settings-row__main small,
.ccr-client-dashboard-settings-source{
  color:rgba(174,190,204,.48);
  font-size:.68rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-settings-row .settings-mini-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.ccr-client-dashboard-settings-debug{
  padding:10px 12px;
  border:1px dashed rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(7,16,24,.18);
  font-size:.72rem;
  overflow-wrap:anywhere;
}

/* Debug panels remain visually secondary. */
.ccr-client-dash-card--debug{
  border-style:dashed;
}
.ccr-client-dashboard-debug-grid,
.ccr-client-dashboard-completeness{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.ccr-client-dashboard-debug-grid div{
  border-radius:12px;
  padding:8px 10px;
  min-width:0;
}
.ccr-client-dashboard-debug-grid strong{
  display:block;
  color:rgba(236,244,250,.78);
  font-size:.76rem;
  line-height:1.35;
  font-weight:600;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-fallback-warning,
.ccr-client-dashboard-settings-source.is-warning{
  color:rgba(255,214,152,.84);
}
.ccr-client-dashboard-completeness-head{
  margin-top:4px;
}
.ccr-client-dashboard-debug-pills{
  min-width:0;
}
.ccr-client-dashboard-debug-pills p{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:0;
}
.ccr-client-dashboard-debug-pills em{
  align-items:center;
  max-width:100%;
  border-radius:999px;
  color:rgba(236,244,250,.78);
  font-style:normal;
  font-size:.68rem;
  line-height:1.2;
  padding:4px 7px;
}

/* Notes / Coach submodal: same translucent shell grammar. */
.ccr-client-submodal{
  position:fixed;
  inset:0;
  z-index:9900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  color:var(--text, rgba(238,244,250,.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-submodal__box{
  position:relative;
  width:min(620px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(18px) saturate(1.12);
  padding:22px;
}
.ccr-client-submodal__close{
  position:absolute;
  top:12px;
  right:12px;
  min-width:36px;
  width:36px;
  height:36px;
  background:rgba(9,15,23,.72);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
.ccr-client-submodal__box h3{
  margin:0 44px 14px 0;
  color:rgba(232,214,164,.90);
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
  font-size:1.12rem;
  line-height:1.2;
  letter-spacing:-.01em;
}
.ccr-client-submodal__textarea{
  width:100%;
  min-height:230px;
  resize:vertical;
  box-sizing:border-box;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
  color:rgba(238,244,250,.94);
  padding:14px;
  font:inherit;
  line-height:1.5;
  outline:none;
}
.ccr-client-submodal__textarea:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}
.ccr-client-submodal__label{
  display:grid;
  gap:7px;
  margin:0 0 12px;
  color:rgba(203,216,229,.66);
  font-size:.72rem;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-submodal__input{
  width:100%;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
  color:rgba(238,244,250,.94);
  padding:11px 12px;
  font:inherit;
  line-height:1.4;
  outline:none;
}
.ccr-client-submodal__input:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}
.ccr-client-submodal__status{
  min-height:20px;
  color:rgba(232,214,164,.86);
  margin:10px 0 0;
  font-size:.86rem;
}
.ccr-client-submodal__footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

/* Standalone viewer keeps the same dashboard cards while using full-page chrome. */
.ccr-client-standalone-page{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at 18% 0%, rgba(84,135,165,.25), transparent 36%),
    linear-gradient(180deg, #07101a 0%, #03070c 100%);
  color:rgba(238,244,250,.94);
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-standalone-wrap{
  width:min(920px, calc(100% - 32px));
  margin:0 auto;
  padding:clamp(18px, 4vw, 42px) 0;
}
.ccr-client-standalone-wrap .ccr-client-dash{
  position:relative;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
}

@media (max-width:760px){
  .ccr-client-dash-shell{
    top:max(8px, calc(env(safe-area-inset-top, 0px) + 8px));
    left:max(6px, calc(env(safe-area-inset-left, 0px) + 6px));
    right:max(6px, calc(env(safe-area-inset-right, 0px) + 6px));
    bottom:max(8px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    width:auto;
    border-radius:20px;
  }
  .ccr-client-dash-shell-head{
    padding:16px 14px 12px;
  }
  .ccr-client-dash-shell-head h2{
    font-size:1.2rem;
  }
  .ccr-client-dash-shell-subtitle{
    font-size:.88rem;
  }
  .ccr-client-dash-scroll{
    scrollbar-gutter:stable;
  }
  .ccr-client-dash{
    gap:9px;
    padding:10px 8px 14px;
  }
  .ccr-client-dash-head,
  .ccr-client-dash-card{
    gap:8px;
    padding:10px 9px;
    border-radius:16px;
  }
  .ccr-client-dash-head{
    grid-template-columns:1fr;
  }
  .ccr-client-dash-status{
    align-items:flex-start;
    min-width:0;
  }
  .ccr-client-dash-status small{
    text-align:left;
  }
  .ccr-client-dash-stats,
  .ccr-client-dash-actions,
  .ccr-client-dashboard-debug-grid,
  .ccr-client-dashboard-completeness{
    grid-template-columns:1fr;
  }
  .ccr-client-dash-action{
    width:100%;
    min-height:40px;
  }
  .ccr-client-dashboard-settings-row{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    padding:10px;
  }
  .ccr-client-dashboard-settings-row .settings-mini-actions,
  .ccr-client-submodal__footer{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .ccr-client-dashboard-settings-row .settings-mini-btn,
  .ccr-client-submodal__footer .ccr-client-dash-action{
    width:100%;
    justify-content:center;
  }
  .ccr-client-submodal{
    padding:10px;
  }
  .ccr-client-submodal__box{
    width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
    border-radius:20px;
    padding:18px;
  }
  .ccr-client-submodal__textarea{
    min-height:260px;
  }
  .ccr-client-standalone-wrap{
    width:min(100% - 18px, 920px);
    padding:10px 0 18px;
  }
}
@media (hover:hover){
  .ccr-client-dash-action:hover,
  .ccr-client-dash-resource:hover,
  .ccr-client-dashboard-settings-row .settings-mini-btn:hover{
    transform:translateY(-1px);
  }
}


/* Admin editable Client Dashboard overlay — first safe field-level editor. */
.ccr-client-dash.is-editing{
  gap:12px;
}
.ccr-client-edit-form{
  display:grid;
  gap:12px;
}
.ccr-client-edit-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.ccr-client-edit-field{
  display:grid;
  gap:6px;
  min-width:0;
  color:rgba(203,216,229,.62);
  font-size:.68rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-edit-field--wide{
  grid-column:1 / -1;
}
.ccr-client-edit-field input,
.ccr-client-edit-field textarea,
.ccr-client-edit-resource-row input[type="text"]{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(5,11,18,.24);
  color:rgba(238,244,250,.94);
  padding:10px 11px;
  font:inherit;
  font-size:.82rem;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
  outline:none;
}
.ccr-client-edit-field textarea{
  min-height:86px;
  resize:vertical;
}
.ccr-client-edit-field input:focus,
.ccr-client-edit-field textarea:focus,
.ccr-client-edit-resource-row input[type="text"]:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.075);
}
.ccr-client-edit-resources{
  display:grid;
  gap:8px;
}
.ccr-client-edit-resource-row{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) auto;
  align-items:end;
  gap:8px;
  padding:9px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:rgba(8,14,22,.18);
}
.ccr-client-edit-resource-row label{
  display:grid;
  gap:5px;
  min-width:0;
  color:rgba(203,216,229,.58);
  font-size:.66rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-edit-resource-new-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-height:38px;
  white-space:nowrap;
}
.ccr-client-edit-resource-new-title{
  color:rgba(203,216,229,.48);
  font-size:.58rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
}
.ccr-client-edit-resource-new{
  display:inline-flex !important;
  grid-template-columns:none !important;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:30px;
  padding:0 7px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:rgba(203,216,229,.66);
  font-size:.58rem !important;
  letter-spacing:.06em !important;
  white-space:nowrap;
  cursor:pointer;
}
.ccr-client-edit-resource-new input{
  width:12px;
  height:12px;
  margin:0;
  accent-color:#e8d6a4;
}
.ccr-client-edit-hint,
.ccr-client-edit-status{
  margin:0;
  color:rgba(203,216,229,.56);
  font-size:.76rem;
  line-height:1.45;
}
.ccr-client-edit-status{
  min-height:20px;
  color:rgba(232,214,164,.86);
}
.ccr-client-edit-footer{
  display:grid;
  gap:8px;
}
@media (max-width:760px){
  .ccr-client-edit-grid,
  .ccr-client-edit-resource-row{
    grid-template-columns:1fr;
  }
  .ccr-client-edit-resource-new-group{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

/* r9047: new-build client dashboard creation panel inside admin SO */
.ccr-client-dashboard-create-panel{
  display:grid;
  gap:10px;
  margin:0 0 12px;
  padding:10px;
  border:1px solid rgba(232,214,164,.12);
  border-radius:16px;
  background:rgba(7,14,24,.18);
}
.ccr-client-dashboard-create-bar,
.ccr-client-dashboard-create-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.ccr-client-dashboard-create-status{
  margin:0;
  color:rgba(232,214,164,.92);
  font-size:.78rem;
  line-height:1.35;
}
.ccr-client-dashboard-create-status.is-error{
  color:rgba(255,170,170,.94);
}
.ccr-client-dashboard-create-form{
  display:grid;
  gap:10px;
  padding-top:2px;
}
.ccr-client-dashboard-create-form p{
  margin:0;
  color:rgba(203,216,229,.62);
  font-size:.78rem;
  line-height:1.45;
}
.ccr-client-dashboard-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.ccr-client-dashboard-create-grid label{
  display:grid;
  gap:5px;
  min-width:0;
  color:rgba(203,216,229,.62);
  font-size:.66rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-dashboard-create-grid label.is-wide{
  grid-column:1 / -1;
}
.ccr-client-dashboard-create-grid input,
.ccr-client-dashboard-create-grid textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(5,11,18,.24);
  color:rgba(238,244,250,.94);
  padding:10px 11px;
  font:inherit;
  font-size:.82rem;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
  outline:none;
}
.ccr-client-dashboard-create-grid textarea{
  resize:vertical;
  min-height:78px;
}
.ccr-client-dashboard-create-grid input:focus,
.ccr-client-dashboard-create-grid textarea:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.075);
}
@media (max-width:760px){
  .ccr-client-dashboard-create-grid{
    grid-template-columns:1fr;
  }
}

/* r10312 dashboard resource upload overlay */
.ccr-client-submodal__intro{
  margin:0 0 14px;
  color:rgba(203,216,229,.72);
  font-size:.88rem;
  line-height:1.5;
}
.ccr-client-dash-action--upload{
  border-color:rgba(232,214,164,.22);
  background:rgba(232,214,164,.060);
  color:rgba(232,214,164,.94);
}
.ccr-client-resource-upload-picker{
  display:grid;
  gap:8px;
  margin:0 0 12px;
  color:rgba(203,216,229,.68);
  font-size:.82rem;
}
.ccr-client-resource-upload-picker input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
.ccr-client-resource-upload-picker em{
  display:block;
  min-height:20px;
  color:rgba(238,244,250,.74);
  font-style:normal;
  overflow-wrap:anywhere;
}
.ccr-client-resource-upload-picker:focus-within .ccr-client-dash-action{
  border-color:rgba(232,214,164,.30);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}

/* r10355 — discreet admin dashboard update notification control */
.ccr-client-dash-head-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  gap:6px;
}
/* r10356 — keep admin dashboard Notify inside the header, but pin it to the top right. */
.ccr-client-dash-head:has(.ccr-client-dash-head-actions){
  position:relative;
}
.ccr-client-dash-head:has(.ccr-client-dash-head-actions) > div:first-child{
  padding-right:96px;
}
.ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-head-actions{
  position:absolute;
  top:13px;
  right:14px;
  z-index:3;
  justify-content:flex-end;
}
.ccr-client-dash-head-actions .ccr-client-dash-action--notify{
  width:auto;
  min-height:30px;
  padding:6px 11px;
  border-color:rgba(232,214,164,.18);
  background:rgba(232,214,164,.045);
  color:rgba(232,214,164,.88);
  font-size:.66rem;
  letter-spacing:.08em;
  box-shadow:none;
}
.ccr-client-dash-head-actions .ccr-client-dash-action--notify:hover,
.ccr-client-dash-head-actions .ccr-client-dash-action--notify:focus-visible{
  border-color:rgba(232,214,164,.30);
  background:rgba(232,214,164,.085);
  color:rgba(255,242,202,.98);
}

@media (max-width:640px){
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) > div:first-child{
    padding-right:82px;
  }
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-head-actions{
    top:10px;
    right:10px;
  }
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-action--notify{
    min-height:28px;
    padding:5px 9px;
    font-size:.62rem;
  }
}
.ccr-dashboard-notify-recipient{
  margin:4px 0 12px;
  color:rgba(203,216,229,.70);
  font-size:.82rem;
  overflow-wrap:anywhere;
}
.ccr-dashboard-notify-preview{
  display:grid;
  gap:7px;
  margin:12px 0 0;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:14px;
  background:rgba(255,255,255,.032);
}
.ccr-dashboard-notify-preview span{
  color:rgba(203,216,229,.56);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.ccr-dashboard-notify-preview strong{
  color:rgba(244,248,252,.92);
  font-size:.84rem;
}
.ccr-dashboard-notify-preview pre{
  margin:0;
  white-space:pre-wrap;
  color:rgba(238,244,250,.86);
  font:500 .82rem/1.48 var(--font-sans, Inter, system-ui, sans-serif);
}

/* S37 — dashboard HTML resource viewer overlay.
   Same-origin .html/.htm dashboard resource links open in an in-shell iframe
   while external links and non-HTML files keep their normal target behavior. */
.ccr-client-html-viewer-layer[hidden]{
  display:none !important;
}
body.ccr-client-html-viewer-open{
  overflow:hidden;
}
body.ccr-client-html-viewer-open .mobile-bottom-dock{
  display:none !important;
}
.ccr-client-html-viewer-layer{
  position:fixed;
  inset:0;
  z-index:9905;
  color:var(--text, rgba(238,244,250,.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-html-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,8,15,.48);
  backdrop-filter:blur(10px) saturate(1.08);
}
.ccr-client-html-viewer-shell{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px) + 12px);
  left:max(20px, env(safe-area-inset-left, 0px) + 14px);
  right:max(20px, env(safe-area-inset-right, 0px) + 14px);
  bottom:max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  width:min(1180px, calc(100vw - 40px));
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.16);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232,214,164,.08), transparent 32%),
    linear-gradient(180deg, rgba(22,33,46,.90), rgba(7,12,20,.86));
  box-shadow:0 34px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(18px) saturate(1.12);
}
.ccr-client-html-viewer-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:64px;
  padding:13px 14px 12px 18px;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg, rgba(27,39,53,.94), rgba(18,28,40,.92));
}
.ccr-client-html-viewer-titlewrap{
  min-width:0;
  flex:1 1 auto;
}
.ccr-client-html-viewer-titlewrap p{
  margin:0 0 4px;
  color:rgba(232,214,164,.76);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.ccr-client-html-viewer-titlewrap h2{
  margin:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(244,248,252,.95);
  font-size:1rem;
  line-height:1.12;
  letter-spacing:-.01em;
}
.ccr-client-html-viewer-actions{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.ccr-client-html-viewer-open-tab{
  display:none !important;
  /* S39: in-app HTML openings no longer expose an Open in new tab action. */

  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(232,214,164,.22);
  border-radius:999px;
  background:rgba(232,214,164,.06);
  color:rgba(255,242,202,.94);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  text-decoration:none;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-open-tab:hover,
.ccr-client-html-viewer-open-tab:focus-visible{
  border-color:rgba(232,214,164,.34);
  background:rgba(232,214,164,.11);
  color:rgba(255,248,220,.98);
}
.ccr-client-html-viewer-close{
  flex:0 0 auto;
  width:36px;
  height:36px;
}
.ccr-client-html-viewer-framewrap{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  background:rgba(2,5,9,.72);
}
.ccr-client-html-viewer-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

/* S40 — opt-in single-resource mobile preview hard viewport + height cap.
   Dashboard HTML links tagged with ?ccr_mobile_preview=1 render inside a
   real phone-width iframe/device wrapper on desktop. Untagged S37 HTML
   overlays are unchanged, the in-overlay Open in new tab control is gone,
   and the simulated phone no longer stretches vertically on 4K displays. */
.ccr-client-html-viewer-preview-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:0;
  padding:3px 9px;
  border:1px solid rgba(232,214,164,.24);
  border-radius:999px;
  color:rgba(255,242,202,.95);
  background:rgba(232,214,164,.09);
  font-size:.56rem;
  font-weight:850;
  line-height:1.1;
  letter-spacing:.12em;
  text-transform:uppercase;
  vertical-align:middle;
  white-space:nowrap;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-mobile-preview:not(.is-shadow-play-admin-console) .ccr-client-html-viewer-head{
  position:relative;
}
.ccr-client-html-viewer-layer.is-mobile-preview:not(.is-shadow-play-admin-console) .ccr-client-html-viewer-preview-badge{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:2;
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-framewrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,214,164,.10), transparent 34%),
    rgba(2,5,9,.78);
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-device{
  flex:0 0 auto;
  display:flex;
  width:min(var(--ccr-client-html-mobile-preview-width, 390px), calc(100vw - 56px));
  max-width:100%;
  height:min(var(--ccr-client-html-mobile-preview-height, 844px), 100%);
  max-height:100%;
  min-height:0;
  aspect-ratio:390 / 844;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.16);
  border-radius:22px;
  background:#fff;
  box-shadow:0 22px 64px rgba(0,0,0,.38);
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-frame{
  flex:1 1 auto;
  display:block;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:100%;
  min-height:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}

/* S50J — keep Shadow Play iframe surface black until the app splash has painted.
   This prevents the browser's blank iframe document/device background from flashing white. */
.ccr-client-html-viewer-layer.is-shadow-play .ccr-client-html-viewer-framewrap{
  position:relative;
  background:#000;
}
.ccr-client-html-viewer-layer.is-shadow-play.is-mobile-preview .ccr-client-html-viewer-device{
  position:relative;
  isolation:isolate;
  background:#000;
}
.ccr-client-html-viewer-layer.is-shadow-play .ccr-client-html-viewer-frame{
  position:relative;
  z-index:1;
  background:#000;
  color-scheme:dark;
}
.ccr-client-html-viewer-layer.is-shadow-play-frame-loading .ccr-client-html-viewer-framewrap::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  background:#000;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-frame-loading.is-mobile-preview .ccr-client-html-viewer-device::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:9;
  background:#000;
  pointer-events:none;
}

@media (max-width:760px), (pointer:coarse){
  .ccr-client-html-viewer-shell{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    max-width:none;
    border-width:0;
    border-radius:0;
  }
  .ccr-client-html-viewer-head{
    min-height:58px;
    padding:calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-right, 0px) + 10px) 8px calc(env(safe-area-inset-left, 0px) + 12px);
    gap:8px;
  }
  .ccr-client-html-viewer-titlewrap p{
    font-size:.58rem;
    margin-bottom:3px;
  }
  .ccr-client-html-viewer-titlewrap h2{
    font-size:.88rem;
  }
  .ccr-client-html-viewer-open-tab{
    min-height:31px;
    padding:6px 9px;
    font-size:.58rem;
    letter-spacing:.06em;
  }
  .ccr-client-html-viewer-close{
    width:34px;
    height:34px;
  }
  .ccr-client-html-viewer-framewrap{
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-framewrap{
    display:block;
    padding:0 0 env(safe-area-inset-bottom, 0px);
    overflow:hidden;
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-device{
    width:100%;
    height:100%;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-frame{
    width:100% !important;
    height:100%;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

}


/* S46 — dashboard mobile active-element selection polish.
   Text blocks remain selectable; dashboard controls/resource actions do not show
   mobile blue selection/tap rectangles when touched. */
@media (hover:none), (pointer:coarse), (max-width:760px){
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .ccr-client-dashboard-btn,
    .ccr-client-dashboard-chip,
    .ccr-client-dashboard-tab,
    .ccr-client-dashboard-resource-action,
    .ccr-client-dashboard-resource-link,
    .ccr-client-dashboard-resource-item__action,
    .ccr-client-html-viewer-close,
    .ccr-client-html-viewer-preview-badge,
    .ccr-client-html-viewer-open-tab
  ),
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .ccr-client-dashboard-btn,
    .ccr-client-dashboard-chip,
    .ccr-client-dashboard-tab,
    .ccr-client-dashboard-resource-action,
    .ccr-client-dashboard-resource-link,
    .ccr-client-dashboard-resource-item__action,
    .ccr-client-html-viewer-close,
    .ccr-client-html-viewer-preview-badge,
    .ccr-client-html-viewer-open-tab
  ) *{
    -webkit-user-select:none !important;
    user-select:none !important;
    -webkit-touch-callout:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }

  :where(a, button, summary, label[for], label[role="button"], [role="button"], [role="tab"], [role="menuitem"], .ui-btn, .ccr-client-dashboard-btn):focus:not(:focus-visible){
    outline:none !important;
  }

  :where(input, textarea, select, [contenteditable="true"], .allow-text-selection, .copyable, .copy-target){
    -webkit-user-select:text !important;
    user-select:text !important;
    -webkit-touch-callout:default !important;
  }
}

/* S50A — Shadow Play Teacher Console, CCR/SO transparent overlay shell */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
  width:min(98vw,1880px);
  height:min(94vh,1040px);
  display:grid;
  grid-template-columns:minmax(230px,310px) minmax(390px,1fr) minmax(260px,390px);
  grid-template-rows:auto minmax(0,1fr);
  gap:12px;
  padding:14px;
  background:linear-gradient(145deg,rgba(6,12,24,.38),rgba(7,18,32,.24));
  border:1px solid rgba(215,176,86,.32);
  box-shadow:0 32px 90px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,255,255,.045);
  backdrop-filter:blur(10px) saturate(1.1);
  -webkit-backdrop-filter:blur(10px) saturate(1.1);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
  grid-column:1 / -1;
  grid-row:1;
  background:rgba(4,12,24,.18);
  border:1px solid rgba(215,176,86,.20);
  border-radius:18px;
  padding:10px 12px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{
  grid-column:2;
  grid-row:2;
  min-width:0;
  min-height:0;
  height:100%;
  border-radius:22px;
  background:rgba(3,9,18,.18);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 0 32px rgba(0,0,0,.18);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-mobile-preview .ccr-client-html-viewer-framewrap{
  align-items:center;
  justify-content:center;
}
.ccr-shadow-admin-console{
  min-width:0;
  min-height:0;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(215,176,86,.26);
  background:linear-gradient(160deg,rgba(9,18,34,.34),rgba(8,20,34,.18));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 18px 52px rgba(0,0,0,.24);
  backdrop-filter:blur(12px) saturate(1.12);
  -webkit-backdrop-filter:blur(12px) saturate(1.12);
  color:rgba(244,248,255,.92);
  display:flex;
  flex-direction:column;
}

.ccr-shadow-admin-console :where(button,input,select,textarea,summary,pre,code,span,strong,small,h1,h2,h3,h4,p,div){
  font-family:var(--ccr-shadow-console-font);
}
.ccr-shadow-admin-console--left{grid-column:1;grid-row:2;}
.ccr-shadow-admin-console--right{grid-column:3;grid-row:2;}
.ccr-shadow-console-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(215,176,86,.17);
  background:linear-gradient(90deg,rgba(215,176,86,.12),rgba(255,255,255,.025));
}
.ccr-shadow-console-head p{
  margin:0;
  color:rgba(215,176,86,.86);
  font:700 10px/1.1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.ccr-shadow-console-head h3{
  margin:0;
  color:rgba(255,255,255,.94);
  font:760 15px/1.12 var(--ccr-shadow-console-font);
  letter-spacing:.02em;
}
.ccr-shadow-console-title{
  min-width:0;
  flex:1;
}
.ccr-shadow-console-refresh{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:86px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.38);
  color:rgba(255,255,255,.92);
  background:linear-gradient(135deg,rgba(215,176,86,.16),rgba(255,255,255,.045));
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045),0 8px 20px rgba(0,0,0,.16);
  font:760 11px/1 var(--ccr-shadow-console-font);
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease;
}
.ccr-shadow-console-refresh:hover{
  transform:translateY(-1px);
  border-color:rgba(236,201,112,.58);
  background:linear-gradient(135deg,rgba(215,176,86,.24),rgba(255,255,255,.07));
}
.ccr-shadow-console-refresh:disabled{
  opacity:.62;
  cursor:wait;
}
.ccr-shadow-console-refresh.is-refreshing span{
  display:inline-block;
  animation:ccr-shadow-console-spin .9s linear infinite;
}
.ccr-shadow-console-refresh-status{
  margin:9px 10px 0;
  padding:7px 9px;
  border:1px solid rgba(215,176,86,.18);
  border-radius:12px;
  background:rgba(1,8,18,.2);
  color:rgba(236,201,112,.86);
  font:700 10px/1.25 var(--ccr-shadow-console-font);
  letter-spacing:.07em;
  text-transform:uppercase;
}
.ccr-shadow-console-refresh-status:empty,
.ccr-shadow-console-refresh-status[hidden]{
  display:none;
}
@keyframes ccr-shadow-console-spin{
  to{transform:rotate(360deg);}
}
.ccr-shadow-console-section{
  padding:10px;
  overflow:auto;
}
.ccr-shadow-console-section + .ccr-shadow-console-section{
  border-top:1px solid rgba(255,255,255,.06);
}
.ccr-shadow-console-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.ccr-shadow-console-metrics div{
  border:1px solid rgba(215,176,86,.18);
  border-radius:14px;
  background:rgba(1,8,18,.22);
  padding:9px 10px;
}
.ccr-shadow-console-metrics span,
.ccr-shadow-score-row span{
  display:block;
  color:rgba(210,224,245,.68);
  font:600 10px/1.1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.09em;
}
.ccr-shadow-console-metrics strong{
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.96);
  font:760 18px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-users,
.ccr-shadow-console-recordings{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ccr-shadow-console-user,
.ccr-shadow-console-recording{
  width:100%;
  text-align:left;
  display:grid;
  gap:8px;
  align-items:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:rgba(244,248,255,.92);
  border-radius:16px;
  padding:9px;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.ccr-shadow-console-user{
  grid-template-columns:34px minmax(0,1fr) auto;
}
.ccr-shadow-console-recording{
  grid-template-columns:62px minmax(0,1fr) 44px;
}
.ccr-shadow-console-user:hover,
.ccr-shadow-console-recording:hover,
.ccr-shadow-console-user.is-active{
  border-color:rgba(215,176,86,.48);
  background:rgba(215,176,86,.10);
  transform:translateY(-1px);
}
.ccr-shadow-console-user__badge{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(215,176,86,.16);
  border:1px solid rgba(215,176,86,.32);
  color:rgba(255,229,166,.96);
  font:800 12px/1 var(--ccr-shadow-console-font);
  letter-spacing:.06em;
}
.ccr-shadow-console-user strong,
.ccr-shadow-console-recording strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(255,255,255,.96);
  font:700 12px/1.1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-user small,
.ccr-shadow-console-recording small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(210,224,245,.62);
  font:600 10px/1.15 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-user__stats,
.ccr-shadow-console-recording > span:last-child{
  text-align:right;
}
.ccr-shadow-console-user__stats b,
.ccr-shadow-console-recording b{
  display:block;
  color:rgba(255,229,166,.98);
  font:800 15px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-recording__text{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(244,248,255,.86);
  font:600 12px/1.2 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-card{
  border:1px solid rgba(215,176,86,.20);
  background:rgba(2,8,18,.20);
  border-radius:18px;
  padding:12px;
}
.ccr-shadow-detail-kicker{
  color:rgba(215,176,86,.9);
  font:800 10px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.ccr-shadow-detail-card h3{
  margin:6px 0 8px;
  color:rgba(255,255,255,.96);
  font:760 15px/1.25 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 10px;
}
.ccr-shadow-detail-meta span{
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  padding:4px 8px;
  color:rgba(210,224,245,.74);
  font:600 10px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-audio{
  width:100%;
  margin:4px 0 10px;
}
.ccr-shadow-score-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.ccr-shadow-score-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  background:rgba(215,176,86,.10);
}
.ccr-shadow-score-head span{
  color:rgba(215,176,86,.92);
  font:800 10px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.ccr-shadow-score-head strong{
  color:rgba(255,255,255,.98);
  font:800 28px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-score-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 12px;
  border-top:1px solid rgba(255,255,255,.06);
}
.ccr-shadow-score-row strong{
  color:rgba(255,229,166,.96);
  font:800 14px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-metadata{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.ccr-shadow-metadata summary{
  cursor:pointer;
  padding:10px 12px;
  color:rgba(215,176,86,.9);
  font:800 11px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.11em;
}
.ccr-shadow-metadata pre{
  max-height:320px;
  overflow:auto;
  margin:0;
  padding:10px;
  color:rgba(222,235,255,.78);
  background:rgba(0,0,0,.22);
  font:500 11px/1.45 var(--ccr-shadow-console-font);
  white-space:pre-wrap;
}
.ccr-shadow-console-empty,
.ccr-shadow-console-loading,
.ccr-shadow-console-error{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  color:rgba(210,224,245,.72);
  padding:12px;
  font:600 12px/1.35 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-error{
  border-color:rgba(255,128,128,.28);
  color:rgba(255,190,190,.94);
  background:rgba(120,20,20,.16);
}
@media (max-width:1180px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);
    grid-template-rows:auto minmax(0,1fr) minmax(240px,38vh);
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{grid-column:1 / -1;grid-row:2;}
  .ccr-shadow-admin-console--left{grid-column:1;grid-row:3;}
  .ccr-shadow-admin-console--right{grid-column:2;grid-row:3;}
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    width:100vw;
    height:100dvh;
    border-radius:0;
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr) minmax(210px,34dvh) minmax(210px,34dvh);
    padding:8px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{grid-column:1;grid-row:2;}
  .ccr-shadow-admin-console--left{grid-column:1;grid-row:3;}
  .ccr-shadow-admin-console--right{grid-column:1;grid-row:4;}
}


/* S50D — Shadow Play Teacher Console professional CCR/SO layout polish */
body.ccr-shadow-play-admin-console-open [data-client-dashboard-history-launcher],
body.ccr-shadow-play-admin-console-open [data-client-dashboard-visit-notice]{
  display:none !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
  padding:12px 14px;
  background:linear-gradient(90deg,rgba(215,176,86,.14),rgba(4,13,26,.18) 54%,rgba(255,255,255,.03));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap p{
  color:rgba(223,188,101,.92);
  font-family:var(--ccr-shadow-console-font);
  letter-spacing:.16em;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap h2{
  color:rgba(255,255,255,.96);
  font-family:var(--ccr-shadow-console-font);
  font-weight:780;
  letter-spacing:.015em;
}
.ccr-shadow-console-block-label,
.ccr-shadow-detail-section-label{
  padding:10px 12px 0;
  color:rgba(215,176,86,.76);
  font:800 9px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.ccr-shadow-console-block-label + .ccr-shadow-console-section{
  border-top:0;
  padding-top:8px;
}
.ccr-shadow-admin-console{
  background:linear-gradient(160deg,rgba(8,18,34,.30),rgba(8,20,34,.13));
  border-color:rgba(215,176,86,.24);
}
.ccr-shadow-console-head{
  min-height:58px;
  background:linear-gradient(90deg,rgba(215,176,86,.13),rgba(255,255,255,.022));
}
.ccr-shadow-console-metrics{
  gap:7px;
}
.ccr-shadow-console-metrics div{
  background:rgba(1,8,18,.18);
  border-color:rgba(215,176,86,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.ccr-shadow-console-metrics strong{
  color:rgba(255,244,210,.96);
}
.ccr-shadow-console-user,
.ccr-shadow-console-recording{
  background:rgba(255,255,255,.028);
  border-color:rgba(255,255,255,.075);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018);
}
.ccr-shadow-console-user:hover,
.ccr-shadow-console-recording:hover,
.ccr-shadow-console-user.is-active,
.ccr-shadow-console-recording.is-active{
  border-color:rgba(226,189,94,.62);
  background:linear-gradient(135deg,rgba(215,176,86,.12),rgba(255,255,255,.035));
  box-shadow:0 0 0 1px rgba(215,176,86,.12),0 10px 28px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.035);
}
.ccr-shadow-console-recording{
  grid-template-columns:64px minmax(0,1fr) 48px;
  gap:9px;
  padding:10px;
}
.ccr-shadow-console-recording__main{
  min-width:0;
}
.ccr-shadow-console-recording__main small{
  color:rgba(210,224,245,.54);
}
.ccr-shadow-console-recording__score b{
  font-size:17px;
  color:rgba(255,229,166,.98);
}
.ccr-shadow-console-recording__score small{
  text-transform:uppercase;
  letter-spacing:.09em;
}
.ccr-shadow-console-section--detail{
  padding-top:8px;
}
.ccr-shadow-detail-card{
  padding:0;
  overflow:hidden;
  background:linear-gradient(160deg,rgba(2,8,18,.24),rgba(255,255,255,.025));
}
.ccr-shadow-detail-section{
  padding:12px;
}
.ccr-shadow-detail-section + .ccr-shadow-detail-section{
  border-top:1px solid rgba(255,255,255,.065);
}
.ccr-shadow-detail-section .ccr-shadow-detail-section-label{
  padding:0 0 9px;
}
.ccr-shadow-detail-kicker{
  color:rgba(255,229,166,.94);
}
.ccr-shadow-detail-card h3{
  margin-top:7px;
  font-size:14px;
  line-height:1.28;
}
.ccr-shadow-audio-capsule{
  margin-top:10px;
  padding:9px;
  border:1px solid rgba(215,176,86,.16);
  border-radius:15px;
  background:rgba(0,0,0,.18);
}
.ccr-shadow-audio-capsule > span{
  display:block;
  margin:0 0 7px;
  color:rgba(215,176,86,.78);
  font:800 9px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.ccr-shadow-detail-audio{
  display:block;
  width:100%;
  margin:0;
  filter:brightness(.88) saturate(.9);
}
.ccr-shadow-score-card{
  background:rgba(255,255,255,.028);
}
.ccr-shadow-score-head{
  background:linear-gradient(90deg,rgba(215,176,86,.14),rgba(255,255,255,.035));
}
.ccr-shadow-score-head strong{
  color:rgba(255,238,190,.98);
  text-shadow:0 0 18px rgba(215,176,86,.16);
}
.ccr-shadow-console-empty--soft{
  margin:10px;
  border-color:rgba(215,176,86,.12);
  color:rgba(210,224,245,.68);
}
.ccr-shadow-metadata{
  margin-top:0;
}
.ccr-shadow-metadata summary{
  background:rgba(255,255,255,.025);
}
@media (max-width:1180px){
  .ccr-shadow-console-block-label{padding-top:8px;}
}

/* S50E — Coach Console row compactness, dedupe display, and overflow polish */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
  grid-template-columns:minmax(210px,300px) minmax(390px,1fr) minmax(275px,390px);
}
.ccr-shadow-admin-console{
  --ccr-shadow-console-font:var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  font-family:var(--ccr-shadow-console-font);
}
.ccr-shadow-console-head{
  min-height:52px;
  padding:10px 12px 9px;
}
.ccr-shadow-console-head p{
  font-size:9px;
  line-height:1.15;
  letter-spacing:.14em;
}
.ccr-shadow-console-head h3{
  font-size:13px;
  line-height:1.1;
  letter-spacing:.01em;
}
.ccr-shadow-console-refresh{
  min-width:72px;
  height:27px;
  padding:0 9px;
  gap:5px;
  font-size:10px;
  letter-spacing:.045em;
}
.ccr-shadow-console-block-label,
.ccr-shadow-detail-section-label{
  font-size:8.5px;
  letter-spacing:.14em;
  padding:9px 11px 0;
  background:transparent !important;
}
.ccr-shadow-console-section{
  padding:8px 9px;
  overflow-x:hidden;
}
.ccr-shadow-console-section[data-shadow-admin-recordings]{
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
}
.ccr-shadow-console-metrics{
  gap:6px;
}
.ccr-shadow-console-metrics div{
  padding:8px 9px;
  border-radius:13px;
}
.ccr-shadow-console-metrics span,
.ccr-shadow-score-row span{
  font-size:9px;
  letter-spacing:.08em;
}
.ccr-shadow-console-metrics strong{
  font-size:15px;
}
.ccr-shadow-console-user{
  grid-template-columns:30px minmax(0,1fr) minmax(64px,max-content);
  gap:7px;
  padding:8px;
  border-radius:14px;
}
.ccr-shadow-console-user__badge{
  width:28px;
  height:28px;
  font-size:10px;
}
.ccr-shadow-console-user strong{
  font-size:11px;
}
.ccr-shadow-console-user small{
  font-size:9.5px;
}
.ccr-shadow-console-user__stats b{
  font-size:12px;
}
.ccr-shadow-console-user__stats small{
  font-size:9px;
}
.ccr-shadow-console-recordings{
  gap:7px;
  overflow-x:hidden;
}
.ccr-shadow-console-recording{
  grid-template-columns:minmax(44px,56px) minmax(0,1fr) 42px;
  gap:7px;
  padding:8px 9px;
  border-radius:14px;
  min-width:0;
  overflow:hidden;
}
.ccr-shadow-console-recording *{
  min-width:0;
}
.ccr-shadow-console-recording__id strong{
  font-size:10.5px;
  letter-spacing:.015em;
}
.ccr-shadow-console-recording__id small{
  font-size:8.5px;
  max-width:100%;
}
.ccr-shadow-console-recording__main{
  min-width:0;
  overflow:hidden;
}
.ccr-shadow-console-recording__text{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:10.5px;
  line-height:1.15;
  color:rgba(244,248,255,.88);
}
.ccr-shadow-console-recording__main small{
  font-size:8.7px;
  line-height:1.15;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  max-width:100%;
}
.ccr-shadow-console-recording__score{
  justify-self:end;
  align-self:center;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:32px;
  max-width:42px;
  min-height:32px;
  border-radius:11px;
  border:1px solid rgba(215,176,86,.18);
  background:rgba(215,176,86,.055);
  text-align:center;
}
.ccr-shadow-console-recording__score b,
.ccr-shadow-console-recording__score > b{
  font-size:12.5px !important;
  line-height:1;
  color:rgba(255,229,166,.96);
}
.ccr-shadow-console-recording__score small{
  display:none !important;
}
.ccr-shadow-console-recording__group{
  display:block;
  margin-top:2px;
  color:rgba(210,224,245,.68);
  font:800 8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.02em;
}
.ccr-shadow-console-recording.is-active .ccr-shadow-console-recording__score{
  border-color:rgba(236,201,112,.46);
  background:rgba(215,176,86,.12);
}
.ccr-shadow-detail-card h3{
  font-size:13px;
  line-height:1.25;
}
.ccr-shadow-detail-meta{
  gap:5px;
}
.ccr-shadow-detail-meta span{
  font-size:9.2px;
}
.ccr-shadow-audio-capsule{
  transform-origin:left center;
}
.ccr-shadow-audio-capsule audio{
  max-width:100%;
}
@media (max-width:1280px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    grid-template-columns:minmax(200px,280px) minmax(390px,1fr) minmax(260px,360px);
  }
  .ccr-shadow-console-recording{grid-template-columns:52px minmax(0,1fr) 38px;}
  .ccr-shadow-console-recording__text{font-size:10px;}
}


/* S50F/S50G — mobile Shadow Play Admin switch mode: compact one-line header */
.ccr-client-html-viewer-mode-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  height:24px;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.34);
  background:linear-gradient(135deg,rgba(215,176,86,.12),rgba(255,255,255,.035));
  color:rgba(255,244,216,.90);
  font:800 8.6px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  letter-spacing:.075em;
  text-transform:uppercase;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 6px 14px rgba(0,0,0,.12);
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
  white-space:nowrap;
}
.ccr-client-html-viewer-mode-toggle[aria-pressed="true"]{
  border-color:rgba(236,201,112,.54);
  background:linear-gradient(135deg,rgba(215,176,86,.20),rgba(255,255,255,.05));
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    border-radius:0;
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
    gap:5px;
    padding:5px;
    overflow:hidden;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-rows:auto;
    gap:6px;
    align-items:center;
    min-height:0;
    padding:5px 7px;
    border-radius:13px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap{
    grid-column:1;
    grid-row:1;
    min-width:0;
    display:flex;
    align-items:center;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap p{
    margin:0;
    font-size:9.2px;
    line-height:1;
    letter-spacing:.13em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap h2{
    display:none;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-actions{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-mode-toggle{
    display:flex;
    grid-column:2;
    grid-row:1;
    width:auto;
    justify-self:end;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{
    grid-column:1;
    grid-row:2;
    min-height:0;
    height:100%;
    border-radius:18px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-mobile-preview .ccr-client-html-viewer-device{
    max-height:100%;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-game-mode .ccr-shadow-admin-console{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-game-mode .ccr-client-html-viewer-framewrap{
    display:flex !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-shell{
    grid-template-rows:auto minmax(0,.47fr) minmax(0,.53fr);
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-framewrap{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console{
    display:flex !important;
    grid-column:1;
    min-height:0;
    border-radius:18px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--left{
    grid-row:2;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--right{
    grid-row:3;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head{
    min-height:0;
    padding:8px 9px 7px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head p{
    font-size:8.2px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head h3{
    font-size:11.5px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section{
    padding:7px 8px;
  }
}

/* S50K-r1 — hard four-row Coach Console recording viewport + visible metadata copy */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-admin-console--right{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-block-label--recordings{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex:0 0 auto;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-block-label--recordings small{
  display:inline-block;
  color:rgba(210,224,245,.58);
  font:800 7.8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section--recordings-viewport,
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
  --ccr-shadow-recordings-four-height:224px;
  flex:0 0 var(--ccr-shadow-recordings-four-height) !important;
  height:var(--ccr-shadow-recordings-four-height) !important;
  max-height:var(--ccr-shadow-recordings-four-height) !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section--detail{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  padding-top:9px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-card{
  min-height:0 !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline .ccr-shadow-detail-section-label{
  padding:0;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule{
  margin-top:9px;
  padding:10px;
  border-color:rgba(215,176,86,.22);
  background:rgba(0,0,0,.24);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule > span{
  margin-bottom:8px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-audio{
  width:100%;
  min-height:40px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.34);
  background:linear-gradient(135deg,rgba(215,176,86,.14),rgba(255,255,255,.04));
  color:rgba(255,244,216,.94);
  font:800 8.4px/1 var(--ccr-shadow-console-font);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 6px 14px rgba(0,0,0,.12);
  transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:hover,
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(236,201,112,.58);
  background:linear-gradient(135deg,rgba(215,176,86,.23),rgba(255,255,255,.055));
  outline:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:disabled{
  opacity:.68;
  cursor:default;
  transform:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy.is-copied{
  border-color:rgba(113,215,154,.52);
  color:rgba(218,255,230,.96);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console [data-shadow-admin-copy-status]{
  color:rgba(210,224,245,.62);
  font:800 8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-section--metadata{
  padding-top:10px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata{
  margin-top:0;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata pre{
  max-height:420px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--recordings-viewport,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
    --ccr-shadow-recordings-four-height:204px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline [data-shadow-admin-copy-status]{
    grid-column:1 / -1;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy{
    height:24px;
    padding:0 8px;
    font-size:7.8px;
  }
}


/* S50M-r1 — mobile Coach Console reachability fix.
   Desktop S50K-r1 layout is intentionally untouched. On phones, Coach Mode
   becomes a single scrollable stack so selected playback/score/metadata can
   never sit below an unreachable fold. */
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-shell{
    display:flex !important;
    flex-direction:column !important;
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    max-height:none !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    gap:8px !important;
    padding:5px !important;
    align-content:stretch !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scroll-padding-top:54px;
    scroll-padding-bottom:22px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-head{
    position:sticky;
    top:0;
    z-index:40;
    flex:0 0 auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto auto !important;
    align-items:center !important;
    gap:5px !important;
    min-height:36px !important;
    padding:5px 6px !important;
    border-radius:13px !important;
    background:linear-gradient(90deg,rgba(7,15,29,.93),rgba(8,18,34,.86)) !important;
    backdrop-filter:blur(14px) saturate(1.12);
    -webkit-backdrop-filter:blur(14px) saturate(1.12);
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap{
    min-width:0 !important;
    max-width:100% !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap p{
    max-width:min(36vw,132px) !important;
    font-size:8.2px !important;
    letter-spacing:.12em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap h2{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-mode-toggle{
    display:flex !important;
    grid-column:auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:124px !important;
    height:25px !important;
    min-height:25px !important;
    padding:0 9px !important;
    font-size:8px !important;
    letter-spacing:.065em !important;
    justify-self:end !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-actions{
    grid-column:auto !important;
    justify-self:end !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-framewrap{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console{
    display:flex !important;
    grid-column:auto !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:none !important;
    flex:0 0 auto !important;
    overflow:visible !important;
    border-radius:18px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--left{
    order:1;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--right{
    order:2;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-head{
    min-height:48px !important;
    padding:8px 9px 7px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-refresh{
    min-width:78px !important;
    height:29px !important;
    padding:0 9px !important;
    font-size:10px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section{
    overflow:visible !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--recordings-viewport,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
    --ccr-shadow-recordings-four-height:204px !important;
    flex:0 0 var(--ccr-shadow-recordings-four-height) !important;
    height:var(--ccr-shadow-recordings-four-height) !important;
    max-height:var(--ccr-shadow-recordings-four-height) !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--detail{
    flex:0 0 auto !important;
    min-height:0 !important;
    max-height:none !important;
    height:auto !important;
    overflow:visible !important;
    padding-top:9px !important;
    padding-bottom:18px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-card{
    overflow:visible !important;
    min-height:0 !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-section{
    padding:11px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-capsule{
    margin-top:8px !important;
    padding:9px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-audio{
    min-height:42px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-metadata pre{
    max-height:42dvh !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

/* S50N — Coach Console dark custom audio player (no native white audio controls) */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule{
  background:linear-gradient(160deg,rgba(1,7,16,.78),rgba(6,15,29,.92));
  border-color:rgba(215,176,86,.26);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 12px 26px rgba(0,0,0,.24);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-audio{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player{
  --ccr-shadow-audio-progress:0%;
  display:grid;
  grid-template-columns:42px auto minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-height:54px;
  padding:8px 11px;
  border:1px solid rgba(236,201,112,.18);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(5,12,24,.96),rgba(12,23,38,.92));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),inset 0 -10px 18px rgba(0,0,0,.16),0 12px 24px rgba(0,0,0,.28);
  color:rgba(255,244,216,.94);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(236,201,112,.38);
  background:radial-gradient(circle at 34% 28%,rgba(236,201,112,.28),rgba(95,70,28,.24) 48%,rgba(0,0,0,.22) 100%);
  color:rgba(255,244,216,.98);
  font:900 15px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 7px 16px rgba(0,0,0,.22);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle span{
  display:block;
  transform:translateX(1px);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-time{
  min-width:76px;
  color:rgba(245,232,198,.92);
  font:800 12px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  letter-spacing:.02em;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek{
  width:100%;
  min-width:0;
  height:26px;
  margin:0;
  background:transparent;
  accent-color:rgb(236,201,112);
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek:disabled{
  opacity:.55;
  cursor:default;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-webkit-slider-runnable-track{
  height:7px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(236,201,112,.86) 0 var(--ccr-shadow-audio-progress),rgba(255,255,255,.16) var(--ccr-shadow-audio-progress) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin-top:-5.5px;
  border-radius:50%;
  border:1px solid rgba(255,239,194,.92);
  background:linear-gradient(135deg,rgba(255,239,194,.98),rgba(215,176,86,.95));
  box-shadow:0 0 0 4px rgba(215,176,86,.12),0 5px 12px rgba(0,0,0,.32);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-track{
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-progress{
  height:7px;
  border-radius:999px;
  background:rgba(236,201,112,.86);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(255,239,194,.92);
  background:linear-gradient(135deg,rgba(255,239,194,.98),rgba(215,176,86,.95));
  box-shadow:0 0 0 4px rgba(215,176,86,.12),0 5px 12px rgba(0,0,0,.32);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player.is-unavailable{
  opacity:.72;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player.is-unavailable .ccr-shadow-audio-time{
  color:rgba(255,206,206,.82);
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-player{
    grid-template-columns:38px minmax(72px,auto) minmax(0,1fr);
    min-height:50px;
    gap:8px;
    padding:7px 9px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-toggle{
    width:34px;
    height:34px;
    font-size:14px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-time{
    min-width:70px;
    font-size:11px;
  }
}


/* S50O — small UI polish: mobile iframe close centering, SO dashboard action breathing room, library cover opens reader. */
.ccr-client-html-viewer-close{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:1 !important;
  text-align:center !important;
}
.ccr-client-html-viewer-close > span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  line-height:1 !important;
  transform:translateY(-.5px);
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-close,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    line-height:1 !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-close > span,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close > span{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:100% !important;
    line-height:1 !important;
    transform:translateY(-.5px);
  }
}
.ccr-client-dashboard-settings-row .settings-mini-actions{
  gap:11px;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  line-height:1;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  line-height:1;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-message"].ccr-client-dashboard-icon-action > span{
  font-size:1.14em;
  transform:translateY(-.5px);
}
@media (min-width:641px){
  .ccr-client-dashboard-settings-row .settings-mini-actions{
    flex-wrap:nowrap;
  }
}
.book-shell-card-item__media-button{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:inherit;
  cursor:pointer;
}
.book-shell-card-item__media-button:focus-visible{
  outline:2px solid rgba(245,214,124,.72);
  outline-offset:3px;
}
.book-shell-card-item__media-button .book-shell-card-item__cover{
  display:block;
}

/* S50O-r2: SO dashboard icon optical centering follow-up.
   Keep S50O-r1 spacing/mail sizing, but force glyphs to sit at true center
   inside their round action containers. */
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action{
  position:relative;
  display:inline-grid !important;
  place-items:center !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0 !important;
  line-height:0 !important;
  text-align:center;
  vertical-align:middle;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action > span{
  position:absolute;
  inset:0;
  display:grid !important;
  place-items:center !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
  text-align:center;
  transform:none !important;
  pointer-events:none;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-delete"].ccr-client-dashboard-icon-action > span{
  font-size:1.08rem;
  font-weight:700;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-open"].ccr-client-dashboard-icon-action > span{
  font-size:1.03rem;
  font-weight:700;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-message"].ccr-client-dashboard-icon-action > span{
  font-size:1.16rem;
  font-weight:700;
}


/* S53B — desktop-only SV Interview overlay launcher */
.ccr-client-dash-action--sv-interview{
  border-color:rgba(232,214,164,.22);
  background:rgba(232,214,164,.065);
  color:rgba(245,215,151,.96);
}
.ccr-client-dash-action--sv-interview:hover,
.ccr-client-dash-action--sv-interview:focus-visible{
  border-color:rgba(232,214,164,.34);
  background:rgba(232,214,164,.105);
  color:#ffe3a0;
}
@media (max-width: 900px){
  [data-client-dashboard-desktop-only="1"],
  .ccr-client-dash-action--sv-interview{
    display:none !important;
  }
}


/* S53B — SV Interview uses the Shadow Play-style live app iframe surface without Shadow admin/identity hooks. */
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-framewrap{
  position:relative;
  background:#000;
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-frame{
  position:relative;
  z-index:1;
  background:#000;
  color-scheme:dark;
}
.ccr-client-html-viewer-layer.is-sv-interview-frame-loading .ccr-client-html-viewer-framewrap::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  background:#000;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-shell{
  width:min(1180px, calc(100vw - 40px));
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-titlewrap p{
  color:rgba(232,214,164,.78);
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-titlewrap h2{
  color:rgba(244,248,252,.96);
}

/* S53C-r1: SV Interview completion notification shown by the CCR parent overlay. */
.ccr-client-sv-completion-toast{
  position:fixed;
  top:86px;
  right:24px;
  z-index:2147483200;
  width:min(340px, calc(100vw - 32px));
  padding:14px 42px 14px 16px;
  border:1px solid rgba(232,214,164,.30);
  border-radius:18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245,214,124,.16), transparent 34%),
    linear-gradient(180deg, rgba(18,24,34,.96), rgba(8,12,18,.94));
  box-shadow:0 22px 60px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.10);
  color:#f7f3e8;
  font-family:Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter:blur(16px);
  animation:ccrSvCompletionToastIn .24s ease-out both;
}
.ccr-client-sv-completion-toast__kicker{
  color:rgba(232,214,164,.82);
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:4px;
}
.ccr-client-sv-completion-toast__title{
  color:#fff;
  font-size:1rem;
  font-weight:900;
  line-height:1.15;
  margin-bottom:7px;
}
.ccr-client-sv-completion-toast p{
  margin:0 0 7px;
  color:rgba(247,243,232,.86);
  font-size:.84rem;
  line-height:1.35;
}
.ccr-client-sv-completion-toast strong{
  display:block;
  color:#f5d67c;
  font-size:.9rem;
  line-height:1.28;
  font-weight:900;
  margin-bottom:6px;
}
.ccr-client-sv-completion-toast small{
  display:block;
  color:rgba(247,243,232,.62);
  font-size:.74rem;
  line-height:1.3;
}
.ccr-client-sv-completion-toast__close{
  position:absolute;
  top:9px;
  right:9px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(232,214,164,.22);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.ccr-client-sv-completion-toast__close:hover{
  background:rgba(245,214,124,.14);
  color:#fff;
}
@keyframes ccrSvCompletionToastIn{
  from{ opacity:0; transform:translateY(-8px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:760px){
  .ccr-client-sv-completion-toast{
    top:74px;
    left:12px;
    right:12px;
    width:auto;
    padding:12px 40px 12px 14px;
    border-radius:16px;
  }
}

