.tod-layout{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:24px;
  margin-bottom:28px;
}

.card{
  background:var(--dark-gray);
  border:1px solid var(--light-gray);
  border-radius:18px;
  padding:24px;
  min-height:100%;
}

.card h3{
  font-family:'Fredoka',sans-serif;
  color:var(--gold);
  font-size:1.3em;
  margin-bottom:16px;
}

.prompt-display{
  border:1px dashed var(--light-gray);
  border-radius:18px;
  padding:24px;
  min-height:220px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background:#141414;
}

.prompt-type{
  font-size:.95rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--mint);
}

.prompt-text{
  font-size:1.3rem;
  font-family:'Fredoka',sans-serif;
  line-height:1.5;
}

.controls-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
  margin:16px 0;
}

.toggle-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pill{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--light-gray);
  cursor:pointer;
  font-family:'Fredoka',sans-serif;
  background:var(--medium-gray);
}

.pill input{
  margin-right:6px;
  accent-color:var(--gold);
}

.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

.history{
  margin-top:32px;
  border:1px solid var(--light-gray);
  border-radius:18px;
  padding:24px;
  background:#111;
}

.history-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

.history-list{
  margin-top:18px;
  border:1px dashed var(--light-gray);
  border-radius:14px;
  padding:18px;
  max-height:320px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.history-entry{
  border:1px solid rgba(251,139,36,.45);
  border-radius:14px;
  padding:12px;
  background:#151515;
}

.history-entry span{
  font-size:.85rem;
  opacity:.7;
}

.custom-area{
  width:100%;
  min-height:80px;
  border-radius:12px;
  border:1px solid var(--light-gray);
  background:var(--medium-gray);
  color:var(--cream);
  padding:12px;
}

.stats-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
}

.stat-card{
  border:1px dashed var(--light-gray);
  border-radius:14px;
  padding:14px;
  text-align:center;
}

.stat-number{
  font-size:1.5rem;
  font-family:'JetBrains Mono',monospace;
  color:var(--mint);
}

@media(max-width:640px){
  .prompt-text{font-size:1.1rem}
}
