/* Track B styles: today extras, briefing, shutdown, focus, launchpads, calendar.
   Uses the calm-launchpad tokens from styles/tokens.css. */

/* ---------- shared ---------- */
.tab-today, .briefing, .shutdown, .focus-picker, .launchpads, .calendar {
  padding: 0 var(--screen-pad);
  max-width: 640px;
  margin: 0 auto;
}

.today-section {
  margin-top: var(--s6);
}

.today-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.today-section-title, .briefing-block-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 var(--s3);
  color: var(--text);
}

.briefing-block {
  margin-top: var(--s6);
}

.briefing-list, .sh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.briefing-cta {
  margin: var(--s8) 0 var(--s10);
  width: 100%;
}

/* ---------- top 3 ---------- */
.top3-list {
  list-style: none;
  margin: 0 0 var(--s3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.top3-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
}

.top3-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.top3-title {
  flex: 1;
  font-size: 15px;
}

.top3-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: var(--s1) var(--s2);
  cursor: pointer;
  flex: none;
}

.pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.pick-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--raised);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-comp);
  padding: var(--s2) var(--s3);
}

.pick-title {
  flex: 1;
  font-size: 14px;
}

/* ---------- agenda ---------- */
.agenda-list {
  list-style: none;
  margin: 0 0 var(--s2);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.agenda-ev {
  display: flex;
  gap: var(--s3);
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
}

.agenda-ev-time {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  min-width: 110px;
}

.agenda-ev-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda-ev-title {
  font-size: 15px;
}

.agenda-group {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--s4) 0 var(--s2);
}

.day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-bottom: var(--s10);
}

/* ---------- briefing ---------- */
.briefing-greet {
  font-size: 28px;
  font-weight: 700;
  margin: var(--s1) 0 var(--s4);
  letter-spacing: -0.01em;
}

/* ---------- shutdown ---------- */
.sh-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
  font-size: 15px;
}

.sh-check {
  color: var(--teal);
  font-weight: 700;
  margin-right: var(--s2);
}

.sh-row .sh-check + span {
  flex: 1;
}

/* ---------- focus picker ---------- */
.focus-pick-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.focus-pick-btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.focus-pick.sel .focus-pick-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.focus-pick-title {
  font-size: 15px;
}

.seg {
  display: flex;
  gap: var(--s2);
  align-items: center;
}

.seg-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-chip);
  padding: var(--s2) var(--s4);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}

.seg-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.seg-custom {
  flex: 1;
}

.seg-input {
  width: 110px;
}

/* ---------- focus fullscreen ---------- */
.focus-full {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s8) var(--screen-pad);
  max-width: 640px;
  margin: 0 auto;
}

.focus-timeup {
  background: var(--amber-tint);
  border: 1px solid var(--amber);
  color: var(--amber-deep);
  border-radius: var(--r-chip);
  padding: var(--s2) var(--s4);
  font-weight: 600;
  margin: 0 0 var(--s4);
}

.focus-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 var(--s6);
  letter-spacing: -0.01em;
}

.focus-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: var(--s4);
}

.focus-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.focus-ring-bg {
  fill: none;
  stroke: var(--divider);
  stroke-width: 8;
}

.focus-ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
}

.focus-clock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.focus-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin-top: var(--s6);
}

.focus-actual {
  margin-top: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s4);
}

.focus-actual-row {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s2);
}

.focus-actual-row .field {
  width: 110px;
}

/* ---------- launchpads ---------- */
.lp-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
}

.lp-card {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
  flex-wrap: wrap;
}

.lp-card-main {
  flex: 1;
  min-width: 140px;
}

.lp-card-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.lp-card-own {
  display: flex;
  gap: var(--s1);
  width: 100%;
}

.lp-form {
  margin-top: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.lp-steps {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.lp-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.lp-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  flex: none;
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}

.lp-step.done .lp-box {
  background: var(--teal);
  border-color: var(--teal);
}

.lp-step.done .lp-step-text {
  text-decoration: line-through;
  color: var(--muted);
}

.lp-run-actions {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
}

.sheet.lp-run {
  max-height: 80vh;
  overflow-y: auto;
}

/* ---------- calendar ---------- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--s4) 0 var(--s3);
}

.cal-month {
  margin: 0;
  font-weight: 600;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s1);
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-chip);
  padding: var(--s2) 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.cal-day.today {
  border-color: var(--accent);
}

.cal-day.sel {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.cal-dayname {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cal-day.sel .cal-dayname {
  color: var(--on-accent);
  opacity: 0.85;
}

.cal-daynum {
  font-size: 17px;
  font-weight: 600;
}

.cal-disconnected {
  margin-top: var(--s3);
  background: var(--amber-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s3) var(--s4);
}

.cal-form {
  margin-top: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-comp);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.cal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

/* ---------- stuck sheet extra row ---------- */
.stuck-more {
  margin-top: var(--s2);
  flex-wrap: wrap;
}
