/* AnyTeam mobile app mockup (illustrative).
   Needs the site's tokens.css and components/bundle.css (Brand Kit) loaded first.
   Size it with --at-mm-scale on .at-mm (1 = 414 x 860px device). */

.at-mm {
  --at-mm-scale: 0.8;
  --at-mm-w: 414px;           /* device outer width at scale 1 */
  --at-mm-h: 860px;           /* device outer height at scale 1 */
  --at-mm-bezel: #111111;     /* hardware: stays black in both modes */
  position: relative;
  width: calc(var(--at-mm-w) * var(--at-mm-scale));
  height: calc(var(--at-mm-h) * var(--at-mm-scale));
  max-width: 100%;
  flex: none;
}
@media (max-width: 599px) { .at-mm { --at-mm-scale: 0.7; } }

/* Cropped: the top of the phone only, bleeding off the bottom of its block */
.at-mm--crop { height: calc(var(--at-mm-h) * var(--at-mm-scale) * 0.62); overflow: hidden; }

.at-mm__device {
  position: absolute; top: 0; left: 0;
  width: var(--at-mm-w); height: var(--at-mm-h);
  transform: scale(var(--at-mm-scale)); transform-origin: top left;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 60px;
  background: var(--at-mm-bezel);
  box-shadow: inset 0 0 0 2px #2c2c2c, var(--shadow-400, 0 30px 80px rgba(17,17,17,.35));
}
.at-mm__screen {
  position: relative; height: 100%;
  border-radius: 48px; overflow: hidden;
  background: var(--bg-primary); color: var(--text-primary);
  font-family: var(--font-sans);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.at-mm__island { position: absolute; top: 11px; left: 50%; width: 122px; height: 35px; margin-left: -61px; border-radius: var(--radius-rounded); background: var(--at-mm-bezel); z-index: 3; }

.at-mm__status { display: flex; justify-content: space-between; align-items: center; padding: 18px 34px 4px 38px; font-size: 16px; font-weight: 500; flex: none; }
.at-mm__status svg { height: 12px; width: auto; fill: currentColor; }
.at-mm__status-icons { display: inline-flex; gap: 6px; align-items: center; }

.at-mm__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 8px 12px; flex: none; }

.at-mm__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 12px 28px 120px; }
.at-mm__scroll::-webkit-scrollbar { display: none; }

.at-mm__eyebrow { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 8px; }
.at-mm__title { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.at-mm__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.at-mm__meta span { display: inline-flex; align-items: center; gap: 4px; }
.at-mm__actions { display: flex; gap: 8px; margin-top: 20px; }

.at-mm__sec { margin-top: 40px; }
.at-mm__sec--first { margin-top: 32px; }
.at-mm__h { font-size: 20px; line-height: 24px; font-weight: 500; margin: 0 0 8px; }

.at-mm__mem { background: var(--bg-secondary); padding: 16px; margin-top: 12px; }
.at-mm__mem-k { font-size: 14px; line-height: 21px; color: var(--text-secondary); margin: 0; }
.at-mm__mem-v { font-size: 16px; line-height: 24px; margin: 4px 0 12px; }
.at-mm__mem-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; line-height: 21px; }
.at-mm__mem-f b { font-weight: 500; }
.at-mm__mem-f span { color: var(--text-secondary); }

.at-mm__list { list-style: none; margin: 0; padding: 0; }
.at-mm__list li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border-tertiary); font-size: 16px; line-height: 24px; }
.at-mm__list li:last-child { border-bottom: 1px solid var(--border-tertiary); }
.at-mm__num { font-size: 14px; line-height: 24px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.at-mm__people { list-style: none; margin: 0; padding: 0; }
.at-mm__people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.at-mm__av { width: 44px; height: 44px; border-radius: var(--radius-rounded); background: var(--bg-secondary); display: grid; place-items: center; font-size: 16px; font-weight: 500; flex: none; }
.at-mm__av--you { background: var(--action-primary); color: var(--on-action-primary); }
.at-mm__p-n { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0; }
.at-mm__p-r { font-size: 14px; line-height: 21px; color: var(--text-secondary); margin: 0; }

.at-mm__ask { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 20px 30px; background: var(--bg-primary); border-top: 1px solid var(--border-tertiary); display: flex; gap: 8px; align-items: center; }
.at-mm__ask .at-search { flex: 1; min-width: 0; width: auto; height: var(--control-m); padding-left: 16px; }
.at-mm__ask .at-search input { font-weight: 400; }
.at-mm__ask .at-icon-btn { flex: none; }
.at-mm__send { background: var(--action-primary) !important; color: var(--on-action-primary) !important; }
.at-mm__send:hover { background: var(--text-hover) !important; }
.at-mm__home { position: absolute; bottom: 9px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: var(--radius-rounded); background: var(--text-primary); }

@media (prefers-reduced-motion: reduce) { .at-mm__scroll { scroll-behavior: auto; } }
