/* embedded widget styles — must be self-sufficient (iframe sandbox) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body.embed {
  font: 14px/1.5 "PT Sans", Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
}
.embed-frame {
  height: 100%; min-height: 320px;
  display: flex; flex-direction: column;
  padding: 12px 14px 8px;
  box-sizing: border-box;
}
h2 {
  margin: 0 0 8px;
  font: 700 1.1rem "Raleway", sans-serif;
  color: #115172;
  border-bottom: 2px solid #6ec1e4;
  padding-bottom: 4px;
}
textarea {
  width: 100%; flex: 1; min-height: 120px;
  border: 1px solid #ddd; border-radius: 4px;
  padding: 10px; font: 14px/1.5 "PT Sans", monospace;
  resize: vertical;
}
textarea:focus { outline: 2px solid #6ec1e4; outline-offset: -1px; }
.embed-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 10px;
}
.embed-stats.single { grid-template-columns: 1fr; }
.embed-stats > div {
  background: #f7f7f7; border-radius: 4px;
  padding: 6px 10px; text-align: center;
}
.embed-stats span {
  display: block; font-weight: 700; color: #115172;
  font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.embed-stats label { font-size: .75rem; color: #7a7a7a; }
.embed-attribution {
  display: block; text-align: center; padding: 4px 0;
  font-size: .75rem; color: #7a7a7a; text-decoration: none;
  border-top: 1px solid #eee; margin-top: 8px;
}
.embed-attribution strong { color: #115172; }
.embed-attribution:hover strong { color: #6ec1e4; }

/* pomodoro */
.pomo-display { font: 700 3rem/1 "Raleway", sans-serif; text-align: center; margin: 1rem 0; color: #115172; }
.pomo-controls, .pomo-modes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.pomo-controls button, .pomo-modes button {
  padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px;
  background: #f7f7f7; cursor: pointer; font: 600 .8rem "Raleway", sans-serif;
}
.pomo-modes button.active { background: #6ec1e4; color: #fff; border-color: #6ec1e4; }

/* typing */
.typing-prompt { background: #f7f7f7; padding: 10px; border-radius: 4px; margin: 6px 0; line-height: 1.6; min-height: 60px; }
.typing-stats { display: flex; justify-content: space-between; padding: 6px 0; font-weight: 700; color: #115172; font-size: .85rem; }

/* calc form */
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.calc-form label { display: flex; flex-direction: column; font-size: .75rem; color: #7a7a7a; }
.calc-form input, .calc-form select {
  padding: 6px 8px; border: 1px solid #ddd; border-radius: 3px; font: 14px "PT Sans", sans-serif;
}
