/* The New Type A · propose something. Builds on ../calendar/styles.css (same tokens and components). */
main { max-width: 560px; }
h1 { overflow-wrap: anywhere; }
a { color: var(--accent-text); }
.section-title { font-size: 17px; margin: 26px 0 0; }
.field-label { display: block; font-weight: 650; font-size: 17px; margin-bottom: 8px; }
input[type=text], input[type=date] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--canvas); color: var(--ink); color-scheme: dark; min-width: 0; }
input::placeholder { color: #6E6E73; }

/* tap choices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink);
  border-radius: 999px; padding: 9px 15px; cursor: pointer; min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dates label { display: grid; gap: 4px; color: var(--muted); min-width: 0; }

/* who */
.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.person { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.person .check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.person[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.person[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.person[disabled] { cursor: default; opacity: 1; }
.person-text { display: grid; min-width: 0; }
.person-text b, .person-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--muted); font-size: 12px; }
.form-error { color: var(--error-ink); min-height: 1.2em; margin: 14px 0 8px; font-size: 15px; }

/* list */
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink);
  text-decoration: none; margin-top: 10px; }
.list-text { display: grid; min-width: 0; }
.list-text b { overflow-wrap: anywhere; }

/* proposal */
.big { font-size: 22px; font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.01em; }
.confirmed { border-color: #2C5A3A; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.status-card.you { border-color: #55555A; }
.status-card .status { flex-wrap: wrap; }
.status-card b { overflow-wrap: anywhere; }
.badge.auto { background: #1E2433; color: #A9C1F5; }
.status-card .badge { white-space: normal; line-height: 1.3; max-width: 100%; }
.invite-label { margin: 10px 0 6px; }
.small-btn { padding: 9px 12px; font-size: 14px; }
.link-field { margin-top: 8px; font-size: 13px !important; padding: 8px 10px !important; }
#p-change-wrap { margin-top: 14px; }

/* candidates */
.cand .status { align-items: flex-start; flex-wrap: wrap; }
.cand-time { font-size: 17px; }
.cand.best { border-color: var(--accent); }
.names { margin: 8px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.names .muted { margin-right: -2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; transform: translateY(-1px); }
.dot.free { background: var(--ok-ink); }
.dot.busy { background: var(--accent); }
.dot.wait { background: var(--muted); }
.cand .btn { margin-top: 12px; }

/* picker */
.picker { border-color: var(--accent); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cal-head { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.day-cell { position: relative; aspect-ratio: 1 / 1.1; min-height: 44px; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 4px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.day-num { font-size: 18px; font-weight: 700; }
.day-mon { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day-cell .tick { position: absolute; top: 3px; right: 5px; font-size: 11px; font-weight: 800; visibility: hidden; }
.day-cell.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-cell.on .day-mon { color: var(--accent-ink); }
.day-cell.on .tick { visibility: visible; }

.tscroll { overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
.tgrid { display: grid; gap: 3px; width: max-content; min-width: 100%; user-select: none; -webkit-user-select: none; }
.t-corner, .t-head { position: sticky; top: 0; }
.t-head { text-align: center; display: grid; font-size: 12px; line-height: 1.2; padding-bottom: 4px; }
.t-head small { color: var(--muted); font-size: 11px; }
.t-hour { font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; align-self: center;
  position: sticky; left: 0; background: var(--surface); z-index: 1; }
.t-cell { height: 30px; min-width: 44px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--canvas);
  cursor: pointer; touch-action: pan-x; }
.t-cell.on { background: var(--accent); border-color: var(--accent); }
.t-cell:hover { border-color: #66666B; }
.t-cell.on:hover { border-color: var(--accent-text); }

.save-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 14px -16px -16px;
  padding: 12px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.save-bar .btn { flex: 1; }
.saved { color: var(--ok-ink); font-weight: 650; font-size: 15px; }
.saved:empty { display: none; }

.back { margin-top: 28px; text-align: center; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.day-cell:focus-visible, .t-cell:focus-visible { outline-offset: 1px; z-index: 2; }

@media (max-width: 360px) {
  .who, .status-grid { grid-template-columns: 1fr; }
  .day-num { font-size: 16px; }
  h1 { font-size: 26px; }
}
