/* free_time — "When are we free?". Solid content on the shell's tokens; no glass here (APP_GUIDE.md §8). */

.ft .ft-chips { gap: 8px; }
.ft .ft-chips .chip[disabled] { opacity: 1; cursor: default; }
/* classmate chips keep their node when toggled (focus stays put): the check shows only when picked */
.ft .ft-chips .chip[aria-pressed="false"] > .ico { display: none; }
.ft .ft-chips .ft-user { min-height: 36px; border-radius: 18px; }
.ft .ft-chips .ft-user.hidden-user { color: var(--hint); }

.ft-add { display: flex; gap: 8px; align-items: center; }
.ft-input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
  -webkit-user-select: text; user-select: text;
}
.ft-input:focus { outline: 2px solid rgb(var(--accent-rgb) / 0.5); outline-offset: 0; }
.ft-add .btn { flex: none; }
.ft-error { margin: 8px 4px 0; font-size: 14px; line-height: 1.35; color: var(--subtitle, var(--hint)); font-weight: 500; }

.ft-result { margin-top: 4px; }
.ft-result .empty:not(.compact) { padding-top: 24px; }

/* the 7-day strip: one solid bar per day, 08:00–20:50 */
.ft-strip { padding: 10px 14px 12px; }
.ft-axis, .ft-day { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; }
.ft-ticks { position: relative; height: 16px; }
.ft-tick {
  position: absolute; top: 0; transform: translateX(-2px);
  font-size: 11px; color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ft-tick:last-child { transform: translateX(-100%); }
.ft-day { min-height: 34px; }
.ft-day + .ft-day { border-top: .5px solid var(--sep); }
.ft-day-label { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ft-day-label b { font-size: 15px; font-weight: 600; color: var(--text); }
.ft-day-label span { font-size: 12px; color: var(--hint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-bar {
  position: relative; display: block; height: 16px; border-radius: 8px; overflow: hidden;
  background: rgb(var(--text-rgb) / 0.10);
}
.ft-bar i { position: absolute; top: 0; bottom: 0; }
.ft-free { background: var(--accent); border-radius: 8px; min-width: 3px; }
.ft-past { left: 0; background: rgb(var(--bg2-rgb) / 0.55); }
.ft-bar.unknown {
  background: repeating-linear-gradient(135deg, rgb(var(--text-rgb) / 0.10) 0 5px, rgb(var(--text-rgb) / 0.03) 5px 10px);
}
.ft-nodata {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--hint);
}
.ft-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--hint); }
.ft-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ft-swatch { display: inline-block; width: 14px; height: 8px; border-radius: 4px; }
.ft-swatch.free { background: var(--accent); }
.ft-swatch.busy { background: rgb(var(--text-rgb) / 0.10); }
.ft-swatch.past {
  background: linear-gradient(rgb(var(--bg2-rgb) / 0.55), rgb(var(--bg2-rgb) / 0.55)), rgb(var(--text-rgb) / 0.10);
}
.ft-swatch.unknown {
  background: repeating-linear-gradient(135deg, rgb(var(--text-rgb) / 0.22) 0 2px, rgb(var(--text-rgb) / 0.05) 2px 4px);
}

.ft-notes { margin: 14px 4px 0; }
.ft-notes p { margin: 0 0 6px; font-size: 14px; line-height: 1.4; color: var(--subtitle, var(--hint)); }
.ft-privacy {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 4px 8px;
  font-size: 13px; line-height: 1.35; color: var(--hint);
}
.ft-privacy .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }

.ft-vis .row-sub { white-space: normal; }
.ft-check { flex: none; color: var(--accent); display: inline-grid; }
.ft-check .ico { width: 20px; height: 20px; }

.ft-copy-hidden { position: fixed; top: 0; left: -9999px; opacity: 0; }
.ft-copy-area {
  width: 100%; min-height: 160px; padding: 12px; border: 0; border-radius: 12px; resize: vertical;
  background: var(--bg2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4;
  -webkit-user-select: text; user-select: text;
}

@media (max-width: 340px) {
  .ft-axis, .ft-day { grid-template-columns: 58px 1fr; gap: 8px; }
}
@media (prefers-contrast: more) {
  .ft-bar { box-shadow: inset 0 0 0 1px var(--text); }
  .ft-free { box-shadow: inset 0 0 0 1px var(--text); }
  .ft-input { box-shadow: inset 0 0 0 1px var(--text); }
}
