/* Milestone view (item #3466). Per-view stylesheet — the routed-view
   convention from #3455: loaded from index.html after chat.css so it
   inherits the entry's token palette.

   HOST-SPECIFIC rules only. The row primitives (.mwk-row, .mwk-main,
   .mwk-title, .mwk-crumb, .mwk-prio, .mwk-status, .mwk-flight, .mwk-count,
   .mwk-empty, .mwk-assign), the page pieces (.ms-head, .ms-dates,
   .ms-stats, .ms-headbar, .ms-controls, .ms-seg, .ms-group-link,
   .ms-owners), the shared .ws-milestone-bar, and the .pill / .fseg /
   .fpill / .item-id controls all arrive through app.css's @import chain
   (wp-mywork.css, wp-milestones.css) — they are deliberately NOT
   re-declared here, so a portal change moves this view with it. Copy a
   rule under .mmm only if one turns out to be missing, with provenance.

   - the view root owns scrolling (#mm-chat is a non-scrolling flex child;
     the portal assumes the document scrollbar);
   - the breakpoint is re-derived for content = viewport minus the 248px
     sidebar (chat.css #mm-side): the portal's 720px rules land at 968px. */

.mmm {
  box-sizing: border-box; height: 100%; overflow-y: auto;
  padding: 32px 36px 48px;
  font-family: var(--sans);
}
.mmm-body { max-width: 900px; margin: 0 auto; }
.mmm .muted { color: var(--text-dim); }

/* -- header: back link, title row, Manage --------------------------------- */
.mmm-back {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 650; color: var(--accent);
  text-decoration: none;
}
.mmm-back:hover { text-decoration: underline; }
.mmm-head { margin-bottom: 14px; }
.mmm-title-row { display: flex; align-items: center; gap: 12px; }
.mmm-title {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  font-size: 19px; font-weight: 700; margin: 0;
}
.mmm-tag {
  font: 600 10.5px var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 8px;
}
.mmm-manage {
  flex: none; font: inherit; font-size: 12px; font-weight: 650;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 12px; cursor: pointer;
}
.mmm-manage:hover { border-color: var(--accent); }

/* -- states ----------------------------------------------------------------- */
.mmm-state {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  color: var(--text-dim); font-size: 13.5px; padding: 18px 2px;
}
.mmm-error { color: var(--danger); }
.mmm-retry, .mmm-back-btn {
  font: inherit; font-size: 12px; font-weight: 650;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 12px; cursor: pointer; text-decoration: none;
}
.mmm-retry:hover, .mmm-back-btn:hover { border-color: var(--accent); }

/* -- rows: the title is a button (#3465) ------------------------------------
   The portal's .mwk-title is a display:block span inside a role=button
   div; here the title itself opens the reader, so reset the button chrome
   and keep the ellipsis the span had. */
.mmm button.mwk-title {
  font: inherit; font-size: 15px; color: var(--text);
  background: none; border: 0; padding: 0; margin: 0;
  text-align: left; cursor: pointer; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mmm button.mwk-title:hover { color: var(--accent-ink); text-decoration: underline dotted var(--muted); }
.mmm button.mwk-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mmm .mwk-main { cursor: default; }
.mmm .mwk-row.finished .mwk-title { color: var(--muted); }

@media (max-width: 968px) {
  .mmm { padding: 20px 16px 40px; }
  .mmm .ms-controls .text { max-width: none; }
  .mmm .mwk-row { flex-wrap: wrap; gap: 8px 12px; }
}
