/* ================= The Message Center, in this experience's clothes =================
   Not a second Message Center: JS/components/message-center.js's panel, filters, unread model
   and badge stay canonical; this only restyles the markup, scoped under `.alt-app`. No
   selector here may hide a control, reorder filters or change what a click does. */

/* The canonical card is 560×620, right beside a full application but cramped alone — capped so
   it never fills edge to edge on a large display. */
.alt-app .mc-card{
  background:var(--a-float); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r-lg); box-shadow:var(--a-shadow-lg);
  font-family:var(--a-body);
  width:min(50vw, 900px); max-width:min(94vw, 900px);
  height:min(72vh, 860px);
  padding:0;   /* the bands own the padding (DS-40): header, tabs, pane and footer run edge to edge with their dividers */
}
@media (max-width:1023px){
  .alt-app .mc-card{ width:min(94vw, 640px); height:min(86vh, 860px); }
}
.alt-app .mc-card .modal-title-row{
  border-bottom:1px solid var(--a-line); padding:var(--a-sp-12) var(--a-pad-body);
}
.alt-app .mc-card h3{
  font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text);
}
/* The close button matches every shared dialog's — see alt-shared-dialogs.css, which owns
   `.mc-card .icon-btn`. */

/* The three filters draw as a tab strip: the active one is blue with a rule under it, because
   colour alone is never the signal. */
.alt-app .mc-card .modal-tabs{
  gap:2px; padding:0 var(--a-pad-body); border-bottom:1px solid var(--a-line); background:transparent;
}
/* The underline is the tab's own bottom border, not an absolute bar: a bar at `bottom:-1px`
   forced a vertical scrollbar (`.modal-tabs` has `overflow-x:auto`, so the other axis computes
   to `auto`). The 2px border replaces 2px of padding. */
.alt-app .mc-card .modal-tab{
  background:none; border:0; border-bottom:2px solid transparent; border-radius:0;
  height:34px; padding:0 var(--a-sp-12); color:var(--a-dim);
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
}
.alt-app .mc-card .modal-tab:hover{ color:var(--a-text); }
.alt-app .mc-card .modal-tab.active{
  color:var(--a-blue-text); background:transparent; border-bottom-color:var(--a-blue);
}
.alt-app .mc-card .modal-tab:focus-visible{
  outline:var(--a-focus); outline-offset:var(--a-focus-inset);
}

.alt-app .mc-card .modal-pane,
.alt-app .mc-card .modal-pane.active{ background:transparent; margin:0; padding:var(--a-pad-body); }
.alt-app .mc-card .modal-footer{
  border-top:1px solid var(--a-line); padding:var(--a-sp-12) var(--a-pad-body); background:transparent;
}
/* Colour only: the size and font are the one `.alt-app .btn` ladder (components.css). */
.alt-app .mc-card .btn{
  background:var(--a-panel); border:1px solid var(--a-line-strong); color:var(--a-text);
}
.alt-app .mc-card .btn:hover{ border-color:var(--a-blue); color:var(--a-blue-text); }
.alt-app .mc-card .btn.primary{
  background:var(--a-blue-fill); border-color:transparent; color:#fff;
}

/* One row of the list — the unread marker is a leading-edge bar plus a weight change, the same
   treatment a status takes on a task row. */
.alt-app .mc-item{
  background:var(--a-raised); border:1px solid var(--a-line-soft);
  border-left:3px solid transparent; border-radius:var(--a-r);
  padding:9px 11px; margin-bottom:6px;
}
.alt-app .mc-item:hover{ border-color:var(--a-line-strong); }
.alt-app .mc-item.unread{ border-left-color:var(--a-blue); background:var(--a-blue-soft); }
.alt-app .mc-item .mc-author{ font:600 var(--a-fs-ctl)/var(--a-lh-tight) var(--a-body); color:var(--a-text); }
.alt-app .mc-item .mc-verb{ font-weight:400; color:var(--a-dim); }
.alt-app .mc-item .mc-when,.alt-app .mc-item .mc-meta{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); font-variant-numeric:tabular-nums; }
.alt-app .mc-item .mc-body{ font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--a-text); min-width:0; }
.alt-app .mc-item .mc-excerpt{
  margin:3px 0 4px; padding-left:9px; border-left:2px solid var(--a-line-strong);
  color:var(--a-dim); font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui);
}
.alt-app .mc-item .mc-context{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint);
}
.alt-app .mc-item .mc-context .mc-task{ color:var(--a-text); font-weight:600; }
.alt-app .mc-item .mc-src{ color:var(--a-faint); }
.alt-app .mc-item .unread-dot{ background:var(--a-blue); }

/* The same quiet row as CSS/components.css's `.mc-item-unavailable`, reskinned; hover's
   stronger border is cancelled since there's nothing to open. */
.alt-app .mc-item-unavailable:hover,.alt-app .mc-item-unavailable:focus-visible{
  border-color:var(--a-line-soft);
}
.alt-app .mc-item-unavailable .mc-excerpt{
  color:var(--a-faint); font-style:italic; border-left-color:var(--a-line-soft);
}
.alt-app .mc-item .mc-avatar{
  /* Not `--a-panel-2` (undefined): alt-tokens.css has `--a-panel`, `--a-raised` and `--a-float`.
       Default fill only. A named person gets `avatarColorFor()` (Utils/people.js) inline via
       messageCenterPersonAvatar() (JS/components/message-center.js), so one colleague is one
       colour everywhere; this shows for team notices and mentions with no resolved author. */
  background:var(--a-raised); border:1px solid var(--a-line-strong);
  color:var(--a-dim);
}
/* A column: this rule once omitted `flex-direction` and inherited `column` from
   CSS/components.css, ragging the buttons' right edges. `flex-end` right-aligns the group
   without stretching buttons to the longest. */
.alt-app .mc-actions{
  display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex:0 0 auto;
}
.alt-app .mc-list{ list-style:none; margin:0; padding:0; }
.alt-app .mc-empty,.alt-app .mc-loading{
  color:var(--a-dim); font-size:var(--a-fs-ctl); text-align:center; padding:26px 10px;
}
.alt-app .mc-empty-head{ font:600 var(--a-fs-14)/var(--a-lh-tight) var(--a-display); color:var(--a-text); }
.alt-app .mc-empty-sub{ font-size:var(--a-fs-ctl); color:var(--a-dim); margin-top:4px; }
.alt-app .mc-empty-mark{ color:var(--a-green); }
.alt-app .mc-empty.err{ color:var(--a-red); }
.alt-app .mc-card a{ color:var(--a-blue-text); }
/* The Message Center's fields are the one classic field (alt-shared-dialogs.css); nothing of their own. */
/* The mention picker and the comment reply chip travel with the panel. */
.alt-app .mention-menu,.alt-app .cfg-popover{
  background:var(--a-float); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r); box-shadow:var(--a-shadow);
}
.alt-app .mention-item{ color:var(--a-text); font-size:var(--a-fs-ctl); }
.alt-app .mention-item.sel,.alt-app .mention-item:hover{ background:var(--a-blue-soft); }

/* ================= The Watching tab =================
   A third row kind with the same card/rail/avatar/timestamp/unread treatment; only the content
   differs (eye glyph, change verb). `--a-blue`/`--a-green`/`--a-amber`/`--a-red`/`--a-gold`
   cover the colours; nothing here hides a control or authors a z-index (JS/core/layers.js). */

/* `.mc-tab-watching` is a hook for a future need and deliberately declares nothing; the tab
   itself is a `.modal-tab`, built by the component, not markup. */

/* The eye leads — it answers "why am I shown this" before the sentence does, so it carries the
   accent weight, not the faint context-line weight. */
.alt-app .mc-item.mc-watch .mc-src{ color:var(--a-blue-text); }

/* Actor takes the same weight as a mention's author so both lists scan as one column of names;
   the verb stays quiet, like `.mc-verb` elsewhere. */
.alt-app .mc-item.mc-watch .mc-watch-actor{
  font:600 var(--a-fs-ctl)/var(--a-lh-tight) var(--a-body); color:var(--a-text);
}
.alt-app .mc-item.mc-watch .mc-watch-verb{ font-weight:400; color:var(--a-dim); }

/* One shade quieter than a quoted comment — this is context, not the news. Hidden outright
   (not just styled) when the task has no body text. */
.alt-app .mc-item.mc-watch .mc-excerpt{
  border-left-color:var(--a-line); color:var(--a-faint);
}

/* ================= The dedupe overlay's fold =================
   A folded row (JS/services/message-dedupe.js) reads like any `.mc-item`, plus a quiet
   disclosure: a toggle and, once pressed, an indented list of the repeats. The list is
   `hidden`, never removed from the DOM. Reuses `.mc-author`/`.mc-verb`/`.mc-when`. */
.alt-app .mc-fold{ margin-top:6px; }
.alt-app .mc-fold-list{
  list-style:none; margin:6px 0 0; padding:2px 0 2px 10px;
  border-left:2px dashed var(--a-line);
  display:flex; flex-direction:column; gap:5px;
}
/* One shade quieter than the row above it — same demotion `.mc-watch .mc-excerpt` gives a
   task's own text: these are superseded repeats, not the news. */
.alt-app .mc-fold-row{ font-size:var(--a-fs-ctl-sm); }
.alt-app .mc-fold-row .mc-author{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); }
.alt-app .mc-fold-row .mc-when{ margin-left:4px; }

/* ================= Motion =================
   The row's own motion lives in CSS/components.css's unscoped `.mc-item` rules. This adds
   motion only for the tabs, buttons, fields and mention rows, on `--dur-micro` (140ms, linear;
   sys_design-system.md §2b). */
/* The focus ring itself is not eased — `.mc-card textarea:focus`'s box-shadow must be true the
   frame the keyboard arrives; only the border colour travels with it. */
/* Reduced motion is answered at the token: alt-tokens.css zeroes `--dur-micro` on `.alt-app`
   under `prefers-reduced-motion: reduce`. */
.alt-app .mc-card .modal-tab,
.alt-app .mc-card .btn,
.alt-app .mc-card textarea,
.alt-app .mc-card input[type="text"],
.alt-app .mention-item{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear;
}
