/* Cluecards home: one next action, exam-ordered study-ready decks.
   Scoped to the home view. Study view and picker preserve their controls. */
.cc-page[data-cc-view="home"] .commandbar{align-items:center}
.cc-page[data-cc-view="home"] .top-actions{
  display:flex;
  flex:0 1 300px;
  width:auto;
  min-width:0;
  max-width:300px;
}
.cc-page[data-cc-view="home"] #resume-button{
  width:100%;
  min-height:52px;
  padding:13px 18px;
  text-align:center;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:.94rem;
  font-weight:700;
}
.cc-page[data-cc-view="home"] .top-actions [hidden]{display:none!important}
.cc-page[data-cc-view="home"] .cc-library-options .pick-actions{display:flex;flex-wrap:wrap}
.cc-page[data-cc-view="home"] .cc-library-options .pick-action{min-height:44px}
.cc-page[data-cc-view="home"] .page .deck-list{
  max-height:none;
  min-height:0;
  overflow:visible;
  padding:10px 14px 20px;
}
.cc-page[data-cc-view="home"] .cc-group{
  padding:12px 0 16px;
  border-bottom:1px solid var(--cc-dash-border);
}
.cc-page[data-cc-view="home"] .cc-group:last-child{border-bottom:0}
.cc-page[data-cc-view="home"] .cc-group-head{
  display:flex;
  gap:8px;
  align-items:center;
  padding:0 0 7px;
  min-width:0;
}
.cc-page .cc-check-hit{
  flex:0 0 44px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius:9px;
}
.cc-page .cc-check-hit:has(.cc-check:focus-visible){
  outline:2px solid var(--cc-dash-accent);
  outline-offset:2px;
}
.cc-page .cc-check-hit .cc-check{
  width:20px;
  height:20px;
  margin:0;
}
.cc-page[data-cc-view="home"] .cc-group-toggle{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:7px 9px;
  border-radius:8px;
  gap:9px;
}
.cc-page[data-cc-view="home"] .cc-group-toggle .cc-group-name{
  min-width:0;
  font-size:.96rem;
  line-height:1.35;
  font-weight:600;
  overflow-wrap:anywhere;
}
.cc-page[data-cc-view="home"] .cc-group-toggle .cc-group-count{
  margin-left:auto;
  font-size:var(--cc-type-meta);
  color:var(--cc-dash-muted);
  flex-shrink:0;
  white-space:normal;
}
.cc-page[data-cc-view="home"] .cc-group-body{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  min-width:0;
}
.cc-page[data-cc-view="home"] .cc-group-body[hidden]{display:none}
.cc-page[data-cc-view="home"] .deck-row{
  display:flex;
  align-items:stretch;
  min-width:0;
  margin:0;
  padding:0;
  gap:3px;
  border:0;
  background:transparent;
}
.cc-page[data-cc-view="home"] .deck-card{
  min-height:0;
  min-width:0;
  width:100%;
  border:0!important;
  border-bottom:1px solid var(--cc-dash-border)!important;
  border-radius:0;
  background:transparent;
  color:var(--cc-dash-ink);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:7px;
  text-align:left;
  padding:15px 14px;
  box-sizing:border-box;
}
.cc-page[data-cc-view="home"] .deck-card:focus-visible,
.cc-page[data-cc-view="home"] .deck-card:hover{
  outline:2px solid var(--cc-dash-accent);
  outline-offset:1px;
  border-color:var(--cc-dash-border-strong)!important;
}
.cc-page[data-cc-view="home"] .cc-deck-tile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  min-width:0;
  gap:7px 11px;
}
.cc-page[data-cc-view="home"] .deck-title{
  min-width:0;
  flex:1 1 130px;
  color:var(--cc-dash-ink);
  overflow-wrap:anywhere;
  font-size:var(--cc-type-label);
  font-weight:600;
  line-height:1.35;
}
.cc-page[data-cc-view="home"] .deck-access{
  flex:0 0 auto;
  margin:0;
  padding:0;
  border-radius:0;
  background:transparent;
  border:0;
  color:var(--cc-dash-accent);
  font-size:var(--cc-type-meta);
  font-weight:500;
  letter-spacing:normal;
}
.cc-page[data-cc-view="home"] .deck-card[data-access="free"] .deck-access{display:none}
.cc-page[data-cc-view="home"] .deck-card[data-access="elite"] .deck-access{
  background:transparent;
}
.cc-page[data-cc-view="home"] .deck-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 11px;
  margin:0;
  color:var(--cc-dash-muted);
  font-size:var(--cc-type-meta);
  line-height:1.4;
}
.cc-page[data-cc-view="home"] .deck-meta > span{
  min-width:0;
  overflow-wrap:anywhere;
}
.cc-page[data-cc-view="home"] .cc-deck-progress-copy{
  display:block;
  margin-top:auto;
  font-size:var(--cc-type-meta);
  font-weight:600;
  color:var(--cc-dash-muted);
}
.cc-page[data-cc-view="home"] .cc-deck-progress{
  display:block;
  width:100%;
  height:3px;
  overflow:hidden;
  border-radius:0;
  background:var(--cc-dash-border-strong);
}
.cc-page[data-cc-view="home"] .cc-deck-progress > span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--cc-dash-accent);
  transition:width .16s ease;
}
.cc-page[data-cc-view="home"] .deck-card.locked{opacity:.86}
@media(max-width:700px){
  .cc-page[data-cc-view="home"] .commandbar{flex-direction:column;align-items:stretch}
  .cc-page[data-cc-view="home"] .top-actions{max-width:none;width:100%;flex:0 0 auto}
  .cc-page[data-cc-view="home"] .cc-group-body{grid-template-columns:minmax(0,1fr)}
  .cc-page[data-cc-view="home"] .page .deck-list{padding:8px 10px 16px}
  .cc-page[data-cc-view="home"] .cc-group-toggle{flex-wrap:wrap}
  .cc-page[data-cc-view="home"] .cc-group-toggle .cc-group-count{margin-left:29px}
  .cc-page[data-cc-view="home"] .deck-card{min-height:0}
}
@media(prefers-reduced-motion:reduce){
  .cc-page[data-cc-view="home"] .cc-deck-progress > span{transition:none}
}

.cc-page[data-cc-view="home"] .library-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px}
.cc-page[data-cc-view="home"] .library-title b{margin-right:auto}
.cc-page[data-cc-view="home"] .cc-library-picker{
  min-height:44px;
  padding:8px 12px;
  border:1px solid var(--cc-dash-border-strong);
  border-radius:8px;
  background:var(--cc-dash-panel-soft);
  color:var(--cc-dash-accent);
  font-size:var(--cc-type-meta);
  font-weight:650;
  cursor:pointer;
}
.cc-page[data-cc-view="home"] .cc-library-picker:hover,
.cc-page[data-cc-view="home"] .cc-library-picker:focus-visible{
  border-color:var(--cc-dash-accent);
}


/* Home is a simple deck browser until Find or mix decks is opened. Inside
   a study-session picker, checkbox selection stays fully available. */
.cc-page[data-cc-view="home"] .library:not(:has(.cc-library-options[open])) .cc-check-hit{
  display:none;
}
.cc-page[data-cc-view="home"] .library:not(:has(.cc-library-options[open])) .cc-deck-tile-head{
  margin-top:1px;
}
.cc-page[data-cc-view="home"] .deck-card[data-access="mixed"] .deck-access{
  border-color:transparent;
  background:transparent;
}
