/* Final layout cleanup: align the Home dashboard and keep secondary surfaces quiet. */
.gc-home-page{max-width:1120px}
.gc-home-dashboard{align-items:stretch}
.gc-home-dashboard>div:first-child{height:100%}
.gc-home-pickup--hero{height:100%}
.gc-home-pickup--hero .gc-card__body{height:100%;align-content:center}
.gc-home-dashboard__side{grid-template-rows:1fr 1fr;height:100%}
.gc-home-dashboard__side>.gc-card,.gc-home-dashboard__side>button{height:100%;min-height:0}
.gc-home-routine-empty,.gc-home-free-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.gc-reference-block{display:grid;gap:14px}
.gc-reference-block .gc-reference-actions{margin-top:0}
.gc-reference-status{margin-top:-2px}

/* Top of Home: one primary practice action + a quieter Free Practice alternative. */
.gc-home-dashboard--practice-only{grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);align-items:stretch}
.gc-home-dashboard__side--practice-only{grid-template-rows:1fr;height:100%}
.gc-home-dashboard__side--practice-only .gc-home-free-card{height:100%;min-height:0;border-color:rgba(255,255,255,.08);background:rgba(13,31,26,.58);box-shadow:none;padding:22px 24px}
.gc-home-dashboard__side--practice-only .gc-home-free-card .gc-action-icon{width:46px;height:46px}
.gc-home-dashboard__side--practice-only .gc-home-free-card .gc-action-copy strong{font-size:18px}
.gc-home-dashboard__side--practice-only .gc-home-free-card .gc-action-copy span{font-size:13px}

/* Routines: direct actions with useful preview, no persistent selection state. */
.gc-routines-inline{margin-top:28px}
.gc-routines-inline .gc-section__head{margin-bottom:10px}
.gc-routines-inline .gc-routine-quick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.gc-routines-inline .gc-routine-quick{display:grid;grid-template-columns:1fr;grid-template-areas:"copy" "actions";gap:0;padding:15px 16px 14px;border-color:rgba(255,255,255,.08);background:rgba(11,27,23,.68);box-shadow:none;cursor:pointer}
.gc-routines-inline .gc-routine-quick:hover{border-color:rgba(89,225,176,.24);background:rgba(14,34,29,.82)}
.gc-routines-inline .gc-routine-quick__copy{grid-area:copy;min-width:0}
.gc-routines-inline .gc-routine-quick__name{display:block;margin-top:0;font-size:17px;line-height:1.2;letter-spacing:-.02em}
.gc-routines-inline .gc-card__eyebrow{font-size:10px;letter-spacing:.13em;color:var(--text-3)}
.gc-routines-inline .gc-routine-quick__actions{grid-area:actions;margin-top:12px;display:grid;grid-template-columns:.8fr 1.2fr;gap:8px}
.gc-routines-inline .gc-routine-quick__actions .gc-secondary,.gc-routines-inline .gc-routine-start{min-height:40px;padding:0 14px;border-radius:12px;font-size:13px}
.gc-routines-inline .gc-routine-start{border:1px solid rgba(98,231,183,.45);background:rgba(98,231,183,.08);color:#59e1b0;font-weight:800;cursor:pointer}
.gc-routines-inline .gc-routine-start:hover{background:var(--accent);color:#06110d}
.gc-routine-preview{grid-area:preview;border-top:1px solid rgba(255,255,255,.06);padding-top:12px}
.gc-routine-preview__list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.gc-routine-preview__list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;align-items:start}
.gc-routine-preview__index{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(89,225,176,.1);color:var(--accent);font-size:11px;font-weight:800}
.gc-routine-preview__list strong{display:block;font-size:13px;line-height:1.25;color:var(--text);font-weight:700}
.gc-routine-preview__list small{display:block;margin-top:2px;color:var(--text-3);font-size:11px;line-height:1.3}
.gc-routine-preview__extra{display:none!important}
.gc-routine-quick.is-preview-expanded .gc-routine-preview__extra{display:grid!important}
.gc-routine-preview__toggle{margin-top:9px;padding:3px 0;font-size:12px}
.gc-routine-empty-line{grid-column:1/-1;padding:16px 0;color:var(--text-3);font-size:13px}

/* Interrupted practice stays primary without turning secondary actions into full-width banners. */
.gc-recovery-primary{margin:0 0 14px;height:auto;width:100%;max-width:760px}
.gc-home-recovery-card{min-height:112px;padding:20px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}
.gc-home-recovery-card .gc-action-copy{display:grid;gap:5px;align-content:center}
.gc-recovery-eyebrow{font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#a8c9bd}
.gc-recovery-title{font-size:clamp(24px,1.8vw,30px);line-height:1.04;letter-spacing:-.035em;color:var(--text)}
.gc-recovery-time{font-size:13px;color:var(--text-3)}
.gc-home-recovery-card .gc-section__actions{display:flex;align-items:center;gap:14px}
.gc-home-recovery-card [data-resume-recovery]{min-width:150px;min-height:48px}
.gc-recovery-discard{font-size:13px;color:var(--text-3);padding:8px 2px}
.gc-recovery-discard:hover{color:var(--text)}
.gc-home-dashboard.gc-dashboard-recovery{grid-template-columns:1fr}
.gc-home-dashboard.gc-dashboard-recovery>div:first-child{display:none}
.gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side{grid-template-columns:1fr;grid-template-rows:auto;height:auto;width:100%;max-width:560px}
.gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side>.gc-card,
.gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side>button{height:auto;min-height:88px}

/* Free Practice already in progress: do not offer a duplicate start action. */
.gc-home-dashboard.gc-dashboard-recovery-free{display:none}
.gc-recovery-primary--free{margin-bottom:10px}
.gc-recovery-primary--free + .gc-home-dashboard + .gc-routines-inline,
.gc-recovery-primary--free + .gc-routines-inline{margin-top:18px}

/* Builder remains edit/create only. */
.gc-routine-meta{margin:8px 24px 0}
.gc-routine-modal>.gc-routine-toolbar{display:none!important}

@media (max-width:1000px){
  .gc-home-dashboard,.gc-home-dashboard--practice-only{grid-template-columns:1fr}
  .gc-home-dashboard__side{grid-template-rows:auto;grid-template-columns:1fr;height:auto}
  .gc-home-dashboard__side>.gc-card,.gc-home-dashboard__side>button{height:auto;min-height:96px}
  .gc-home-dashboard__side--practice-only{grid-template-columns:1fr}
  .gc-recovery-primary{max-width:none}
  .gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side{max-width:none}
  .gc-routines-inline .gc-routine-quick-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  .gc-home-dashboard__side{grid-template-columns:1fr}
  .gc-home-dashboard__side>.gc-card,.gc-home-dashboard__side>button{min-height:84px}
  .gc-home-dashboard__side--practice-only .gc-home-free-card{padding:16px 18px}
  .gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side{grid-template-columns:1fr}
  .gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side>.gc-card,
  .gc-home-dashboard.gc-dashboard-recovery .gc-home-dashboard__side>button{min-height:84px}
  .gc-routines-inline .gc-routine-quick-grid{grid-template-columns:1fr}
  .gc-routines-inline .gc-routine-quick{grid-template-columns:1fr;grid-template-areas:"copy" "actions";padding:14px 14px 12px}
  .gc-recovery-primary{margin-bottom:12px}
  .gc-recovery-primary--free{margin-bottom:8px}
  .gc-home-recovery-card{min-height:0;padding:20px;grid-template-columns:1fr;gap:18px}
  .gc-recovery-title{font-size:30px}
  .gc-home-recovery-card .gc-section__actions{display:flex;justify-content:space-between;gap:12px}
  .gc-home-recovery-card [data-resume-recovery]{min-width:150px}
  .gc-routine-meta{margin:16px 16px 0}
}
