/* ==========================================================================
   Monis — <mm-host> 1:1 Native macOS Companion Window
   Grounded pixel-for-pixel in AtelierOverview / AtelierHostIdentity /
   AtelierSidebar / AtelierSurfaces / CompanionTerminalListPage & Nov 15 captures
   ========================================================================== */
mm-host {
  display: block;
  color-scheme: dark;
  min-width: 0;
}

.mac-native.mh-window {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 756 / 496;
  overflow: hidden;
  border-radius: 1.85% / 2.82%;
  --m-ink: #f4f5f8;
  --m-soft: #9da3b0;
  --m-dim: #777d8a;
  --m-card: rgba(25, 27, 32, .94);
  --m-card-edge: rgba(255, 255, 255, .08);
  --m-pill: rgba(255, 255, 255, .115);
  --m-pill-hover: rgba(255, 255, 255, .155);
  --m-pill-edge: rgba(255, 255, 255, .14);
  --m-hover: rgba(255, 255, 255, .06);
  --m-line: rgba(255, 255, 255, .07);
  /* 1:1 live-monis.png: uniform seamless macOS dark charcoal-slate field across titlebar, sidebar & content */
  background:
    linear-gradient(168deg, #32353b 0%, #2d3036 56%, #282b31 100%);
  box-shadow:
    0 28px 66px rgba(1, 4, 12, .64),
    inset 0 .12cqw 0 rgba(255, 255, 255, .22),
    inset 0 0 0 .11cqw rgba(255, 255, 255, .13);
  color: var(--m-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  line-height: 1.32;
  text-align: left;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.mac-native.mh-window[data-appearance="light"] {
  color-scheme: light;
  --m-ink: #1b1d21;
  --m-soft: #545965;
  --m-dim: #5e6472;
  --m-card: #ffffff;
  --m-card-edge: rgba(0, 0, 0, .085);
  --m-pill: rgba(0, 0, 0, .052);
  --m-pill-hover: rgba(0, 0, 0, .095);
  --m-pill-edge: rgba(0, 0, 0, .095);
  --m-hover: rgba(0, 0, 0, .045);
  --m-line: rgba(0, 0, 0, .075);
  background: linear-gradient(145deg, #e5e8ee 0%, #e7eaef 55%, #e9ecef 100%);
  box-shadow:
    0 22px 52px rgba(8, 14, 26, .24),
    inset 0 0 0 .11cqw rgba(0, 0, 0, .12);
}

.mh-window button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: inherit;
  min-width: 0;
  padding: 0;
  text-align: inherit;
}
.mh-window button:focus-visible {
  outline: 2px solid #5ca3ff;
  outline-offset: 1px;
}
.mh-window .artwork {
  display: block;
  object-fit: contain;
  flex: none;
  pointer-events: none;
  height: auto;
}
.mh-window .mh-g {
  display: block;
  flex: none;
  width: 2.1cqw;
  height: 2.1cqw;
}

/* Seamless transparent titlebar (NO bottom border line!) */
.mh-window .mac-title {
  height: 9.2%;
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 0;
  font-size: 1.72cqw;
  user-select: none;
}
.mh-window .mac-title strong {
  font-weight: 600;
  letter-spacing: -.008em;
  color: color-mix(in srgb, var(--m-ink) 94%, transparent);
}
.mh-window .traffic {
  position: absolute;
  left: 2.35%;
  display: flex;
  align-items: center;
  gap: 1.04cqw;
}
.mh-window .traffic i,
.mh-window .traffic .host-zoom {
  width: 1.56cqw;
  height: 1.56cqw;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .24);
  display: block;
  padding: 0;
}
.mh-window .traffic i:nth-child(2) { background: #febc2e; }
.mh-window .traffic i:nth-child(3),
.mh-window .traffic .host-zoom { background: #28c840; }
.mh-window .traffic .host-zoom:hover { filter: brightness(1.1); }

/* Main split shell — NO sidebar background fill & NO vertical divider line */
.mh-window .mac-shell {
  display: flex;
  height: 90.8%;
  font-size: 1.72cqw;
}
.mh-window .mac-side {
  width: 22.8%;
  flex: none;
  padding: 1.15cqw 1.25cqw 2.15cqw 1.95cqw;
  display: flex;
  flex-direction: column;
  gap: .28cqw;
  background: transparent;
  border-right: 0;
}
.mh-window .mac-side button {
  display: flex;
  align-items: center;
  gap: 1.12cqw;
  width: 100%;
  height: 3.98cqw;
  padding: 0 1.25cqw;
  border-radius: 1.06cqw;
  color: color-mix(in srgb, var(--m-ink) 86%, transparent);
  font-size: 1.72cqw;
  font-weight: 510;
  letter-spacing: -.008em;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.mh-window .mac-side button .mh-g {
  width: 2.08cqw;
  height: 2.08cqw;
  color: color-mix(in srgb, var(--m-ink) 76%, transparent);
  stroke-width: 1.55;
}
.mh-window .mac-side button:hover {
  background: var(--m-hover);
}
/* Quiet neutral Surge/Atelier selection pill — white icon + white semibold label, NEVER blue */
.mh-window .mac-side [aria-current="page"] {
  background: rgba(255, 255, 255, .118);
  color: #ffffff;
  font-weight: 610;
  box-shadow: none;
}
.mh-window .mac-side [aria-current="page"] .mh-g {
  color: #ffffff;
  stroke-width: 1.7;
}
.mh-window[data-appearance="light"] .mac-side [aria-current="page"] {
  background: rgba(0, 0, 0, .085);
  color: #141619;
}
.mh-window[data-appearance="light"] .mac-side [aria-current="page"] .mh-g {
  color: #141619;
}
.mh-window .mac-side .bottom-nav {
  margin-top: auto;
}

.mh-window .mac-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, .016);
}
.mh-window[data-appearance="light"] .mac-pane {
  background: rgba(255, 255, 255, .36);
}
.mh-window .mac-pane::-webkit-scrollbar {
  display: none;
}

/* 3D CNC Brushed-Titanium 10-Tooth Precision Gear (AtelierPrecisionGearIcon + smooth hover spin) */
.mh-gear-svg {
  display: block;
  width: 2.38cqw;
  height: 2.38cqw;
  flex: none;
  filter: drop-shadow(0 .14cqw .26cqw rgba(0, 0, 0, .44));
  transition: transform .65s cubic-bezier(.22, .82, .26, 1);
}
.mh-window .mac-side .bottom-nav:hover .mh-gear-svg {
  transform: rotate(108deg);
}
.mh-gear-svg.is-large {
  width: 5.95cqw;
  height: 5.95cqw;
  filter: drop-shadow(0 .28cqw .68cqw rgba(0, 0, 0, .48));
}

/* macOS 26 Oblong Capsule Switch (1:1 mac-overview-stacked-clean.png & mac-settings-clean.png) */
.iswitch {
  position: relative;
  display: inline-block;
  width: 4.95cqw;
  height: 2.42cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 .08cqw .2cqw rgba(0, 0, 0, .34);
  transition: background .18s ease;
  flex: none;
}
.mh-window[data-appearance="light"] .iswitch {
  background: rgba(0, 0, 0, .15);
}
.iswitch::after {
  content: "";
  position: absolute;
  left: .22cqw;
  top: .21cqw;
  width: 2.74cqw;
  height: 2.0cqw;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 .12cqw .32cqw rgba(0, 0, 0, .34);
  transition: transform .2s cubic-bezier(.22, .9, .3, 1);
}
[aria-checked="true"] .iswitch {
  background: #1a6ef4;
}
[aria-checked="true"] .iswitch::after {
  transform: translateX(1.77cqw);
}

[data-state-dot],
.mh-dot {
  display: inline-block;
  width: .82cqw;
  height: .82cqw;
  flex: none;
  border-radius: 50%;
  background: #777d8b;
}
[data-state-dot][data-on="true"],
.mh-dot.is-on {
  background: #30d158;
}
.mh-dot.is-ready {
  background: #38bdf8;
}

/* ==========================================================================
   Overview Page — 1:1 mac-overview-stacked-clean.png
   ========================================================================== */
.mh-window .mh-overview {
  position: relative;
  min-height: 100%;
  padding: 0;
}

/* Left Host Identity Column */
.mh-window .mh-identity {
  position: absolute;
  left: 1.2%;
  width: 41.5%;
  top: 8.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mh-window .mh-art {
  position: relative;
  width: 84%;
  display: block;
}
.mh-window .mh-art .host-device {
  width: 100%;
  height: auto;
  transition: filter .24s ease, opacity .24s ease, transform .26s cubic-bezier(.2, .86, .24, 1);
}
.mh-window .native-pill.mh-connect {
  position: absolute;
  left: -6.5%;
  top: -5.2%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .68cqw;
  padding: .62cqw 1.48cqw;
  border-radius: 999px;
  background: rgba(24, 26, 32, .96);
  border: .1cqw solid rgba(255, 255, 255, .14);
  box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .44);
  color: #f4f6fa;
  font-size: 1.54cqw;
  font-weight: 560;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, opacity .2s ease;
}
.mh-window .native-pill.mh-connect:hover {
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-.08cqw);
}
.mh-window[data-appearance="light"] .native-pill.mh-connect {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .11);
  color: #1b1d21;
  box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .1);
}
.mh-window .mh-connect .mh-g {
  width: 1.76cqw;
  height: 1.76cqw;
  color: currentColor;
}
.mh-window[data-nebula-open] .mh-art .host-device {
  filter: blur(4px) brightness(.55);
  opacity: .28;
  transform: scale(.97);
}
.mh-window[data-nebula-open] .mh-connect {
  opacity: .32;
  pointer-events: none;
}

.mh-window .mh-host-title {
  margin-top: 2.1cqw;
  font-size: 2.42cqw;
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.22;
  color: var(--m-ink);
}
.mh-window .mh-host-title em {
  font-style: normal;
  font-weight: 430;
  font-size: 1.74cqw;
  color: var(--m-soft);
}
.mh-window .mh-host-os {
  margin-top: .38cqw;
  font-size: 1.56cqw;
  color: var(--m-soft);
}

/* Separate Session Status Block above Allow Connections (1:1 AtelierConnectionStatus) */
.mh-window .mh-conn-status {
  margin-top: 1.55cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62cqw;
  font-size: 1.68cqw;
  font-weight: 600;
  color: var(--m-ink);
}
.mh-window .mh-conn-status[hidden],
.mh-window .mh-conn-timer[hidden] {
  display: none !important;
}
.mh-window .mh-conn-mode-ico {
  display: inline-grid;
  place-items: center;
  width: 1.72cqw;
  height: 1.72cqw;
  color: #8b5cf6;
}
.mh-window .mh-conn-mode-ico.is-view {
  color: #38bdf8;
}
.mh-window .mh-conn-mode-ico .mh-g {
  width: 1.68cqw;
  height: 1.68cqw;
}
.mh-window .mh-conn-timer {
  margin-top: .42cqw;
  font-size: 1.52cqw;
  font-variant-numeric: tabular-nums;
  color: var(--m-soft);
}

/* Allow Connections Capsule (NO green dot inside when active session status is shown above!) */
.mh-window .service-switch.mh-allow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.15cqw;
  margin-top: 1.35cqw;
  padding: .72cqw .92cqw .72cqw 1.6cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: .09cqw solid rgba(255, 255, 255, .095);
  font-size: 1.66cqw;
  font-weight: 540;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.mh-window .service-switch.mh-allow:hover {
  background: rgba(255, 255, 255, .085);
}
.mh-window[data-appearance="light"] .service-switch.mh-allow {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(0, 0, 0, .09);
  box-shadow: 0 .18cqw .6cqw rgba(0, 0, 0, .05);
}
.mh-window .mh-allow-idle-dot[hidden] {
  display: none !important;
}

/* Centered Disconnect / Reconnect pill below Allow Connections */
.mh-window .mh-host-disconnect {
  margin-top: 1.35cqw;
  height: 3.62cqw;
  padding: 0 1.85cqw;
  border-radius: 999px;
  background: var(--m-pill);
  border: .09cqw solid var(--m-pill-edge);
  font-size: 1.54cqw;
  font-weight: 540;
  color: var(--m-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .14s ease;
}
.mh-window .mh-host-disconnect:hover {
  background: var(--m-pill-hover);
}
.mh-window .mh-host-disconnect[hidden] {
  display: none !important;
}

/* Right Working Column: Paired Devices + Running terminals (3D Stacked Decks) */
.mh-window .mh-cards {
  position: absolute;
  left: 43.8%;
  width: 52.6%;
  top: 22.4%;
  display: grid;
  gap: 3.9cqw;
}
.mh-window .mh-cards.is-expanded {
  top: 11.5%;
  gap: 2.8cqw;
  padding-bottom: 2.6cqw;
}
.mh-window .mh-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  margin: 0 0 1.35cqw;
}
.mh-window .mh-sec-head h3 {
  margin: 0;
  font-size: 1.78cqw;
  font-weight: 620;
  letter-spacing: -.01em;
  color: var(--m-ink);
}
.mh-window .mh-sec-link {
  font-size: 1.52cqw;
  font-weight: 480;
  color: var(--m-soft);
  white-space: nowrap;
  transition: color .14s ease;
}
.mh-window .mh-sec-link:hover {
  color: var(--m-ink);
}

/* 3D Stacked Card Deck (1:1 AtelierDeckBackingLayers in AtelierOverview.swift) */
.mh-window .mh-stack-deck {
  position: relative;
  padding-bottom: 1.1cqw;
}
.mh-window .mh-stack-deck.is-depth-2 {
  padding-bottom: 1.75cqw;
}
.mh-window .mh-stack-deck::before,
.mh-window .mh-stack-deck.is-depth-2::after {
  content: "";
  position: absolute;
  left: 1.05cqw;
  right: 1.05cqw;
  bottom: .42cqw;
  height: 7.4cqw;
  border-radius: 1.85cqw;
  background: rgba(36, 39, 48, .9);
  border: .1cqw solid rgba(255, 255, 255, .13);
  box-shadow: 0 .25cqw .7cqw rgba(0, 0, 0, .28);
  pointer-events: none;
  z-index: 0;
}
.mh-window .mh-stack-deck.is-depth-2::before {
  bottom: .75cqw;
}
.mh-window .mh-stack-deck.is-depth-2::after {
  left: 2.1cqw;
  right: 2.1cqw;
  bottom: .12cqw;
  background: rgba(31, 34, 42, .8);
  border-color: rgba(255, 255, 255, .095);
  z-index: -1;
}
.mh-window[data-appearance="light"] .mh-stack-deck::before,
.mh-window[data-appearance="light"] .mh-stack-deck.is-depth-2::after {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(0, 0, 0, .09);
  box-shadow: 0 .2cqw .5cqw rgba(0, 0, 0, .05);
}

.mh-window .mh-card {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 1.62cqw;
  border-radius: 1.85cqw;
  background: var(--m-card);
  border: .1cqw solid var(--m-card-edge);
  box-shadow: 0 .4cqw 1.3cqw rgba(0, 0, 0, .24);
}
.mh-window[data-appearance="light"] .mh-card {
  box-shadow: 0 .3cqw 1.1cqw rgba(0, 0, 0, .065);
}
.mh-window .mh-card-stack-list {
  display: grid;
  gap: 1.15cqw;
}

.mh-window .mh-device {
  display: flex;
  align-items: center;
  gap: .95cqw;
  width: 100%;
  min-height: 9.2cqw;
  padding: 0;
  background: none;
}
.mh-window .mh-device-main {
  display: flex;
  align-items: center;
  gap: 1.35cqw;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 1.35cqw 0;
  cursor: pointer;
}
.mh-window .mh-device-main > span:not(.mh-art-slot),
.mh-window .mh-device > span:not(.mh-art-slot) {
  min-width: 0;
  flex: 1;
}
.mh-window .mh-device b,
.mh-window .mh-row b {
  display: flex;
  align-items: baseline;
  gap: .5cqw;
  font-size: 1.78cqw;
  font-weight: 620;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-window .mh-subname {
  font-weight: 430;
  font-size: 1.52cqw;
  color: var(--m-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-window .mh-device small,
.mh-window .mh-row small {
  display: flex;
  align-items: center;
  gap: .62cqw;
  margin-top: .45cqw;
  font-size: 1.5cqw;
  color: var(--m-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Signature Violet / Blue Mode Badge (1:1 DeviceEffectiveModeBadge in mac-overview-stacked-clean.png) */
.mh-window .mh-mode-badge,
.mh-window button.mh-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: .38cqw;
  padding: .24cqw .78cqw .24cqw .6cqw;
  border-radius: 999px;
  background: rgba(124, 58, 237, .22);
  border: .08cqw solid rgba(167, 139, 250, .3);
  color: #a78bfa;
  font-size: 1.28cqw;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.mh-window .mh-mode-badge .mh-g {
  width: 1.25cqw;
  height: 1.25cqw;
}
.mh-window .mh-mode-badge.is-view,
.mh-window button.mh-mode-badge.is-view {
  background: rgba(56, 189, 248, .18);
  border-color: rgba(125, 211, 252, .3);
  color: #7dd3fc;
}
.mh-window[data-appearance="light"] .mh-mode-badge,
.mh-window[data-appearance="light"] button.mh-mode-badge {
  background: rgba(124, 58, 237, .13);
  border-color: rgba(109, 40, 217, .24);
  color: #6d28d9;
}
.mh-window[data-appearance="light"] .mh-mode-badge.is-view,
.mh-window[data-appearance="light"] button.mh-mode-badge.is-view {
  background: rgba(2, 132, 199, .13);
  border-color: rgba(3, 105, 161, .24);
  color: #0369a1;
}

/* Stack count toggle pill (+2 ⌄ / 3 ^) */
.mh-stack-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .36cqw;
  padding: .38cqw .92cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  color: var(--m-soft);
  font-size: 1.38cqw;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  transition: background .14s ease, color .14s ease;
}
.mh-stack-pill:hover {
  background: rgba(255, 255, 255, .13);
  color: var(--m-ink);
}
.mh-window[data-appearance="light"] .mh-stack-pill {
  background: rgba(0, 0, 0, .06);
}
.mh-window[data-appearance="light"] .mh-stack-pill:hover {
  background: rgba(0, 0, 0, .11);
  color: var(--m-ink);
}
.mh-stack-pill .mh-g {
  width: 1.2cqw;
  height: 1.2cqw;
  stroke-width: 2.2;
}

.mh-window .mh-art-slot {
  width: 3.6cqw;
  height: 5.3cqw;
  display: grid;
  place-items: center;
  flex: 0 0 auto !important;
}
.mh-window .mh-term-tile {
  width: 4.15cqw;
  height: 4.15cqw;
  border-radius: 1.05cqw;
  background: rgba(255, 255, 255, .06);
  border: .08cqw solid rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  color: var(--m-soft);
  flex: 0 0 auto !important;
}
.mh-window[data-appearance="light"] .mh-term-tile {
  background: rgba(0, 0, 0, .055);
  border-color: rgba(0, 0, 0, .065);
}
.mh-window .mh-term-tile .mh-g {
  width: 1.85cqw;
  height: 1.85cqw;
}
.mh-window .mh-term-status {
  display: inline-flex;
  align-items: center;
  gap: .5cqw;
  font-size: 1.48cqw;
  color: var(--m-soft);
  white-space: nowrap;
  flex: none;
}
.mh-window .mh-not-conn-trail {
  font-size: 1.54cqw;
  font-weight: 500;
  color: var(--m-soft);
  white-space: nowrap;
  flex: none;
}
.mh-window .mh-phone-art {
  width: auto;
  height: 5.25cqw;
}
.mh-window .mh-ipad-art {
  width: auto;
  height: 5.05cqw;
  filter: drop-shadow(0 .14cqw .32cqw rgba(0, 0, 0, .38));
}
.mh-window .mh-mini-art {
  width: 4.4cqw;
  height: auto;
}
.mh-window .mh-studio-art {
  width: 4.35cqw;
  height: auto;
  filter: drop-shadow(0 .14cqw .32cqw rgba(0, 0, 0, .36));
}
.mh-window .mh-3d-folder {
  width: 5.8cqw;
  height: auto;
  filter: drop-shadow(0 .22cqw .52cqw rgba(0, 0, 0, .38));
}
.mh-window .mh-folder-row-art {
  width: 3.85cqw;
  height: auto;
  flex: none;
  filter: drop-shadow(0 .14cqw .3cqw rgba(0, 0, 0, .34));
}
.mh-window .mh-ipad-svg {
  width: 3.35cqw;
  height: 5.1cqw;
  display: block;
}
.mh-window .mh-relay-controls {
  display: flex;
  align-items: center;
  gap: .75cqw;
  flex: none;
}
.mh-window .mh-relay-input {
  width: 22cqw;
  height: 3.5cqw;
  padding: 0 1.15cqw;
  border-radius: .9cqw;
  border: .09cqw solid var(--m-card-edge);
  background: rgba(255, 255, 255, .055);
  color: var(--m-ink);
  font: inherit;
  font-size: 1.42cqw;
  outline: none;
}
.mh-window[data-appearance="light"] .mh-relay-input {
  background: rgba(0, 0, 0, .04);
}
.mh-window .mh-relay-input:focus {
  border-color: #3b82f6;
}
.mh-window .mh-term-app {
  width: 4.15cqw;
  height: 4.15cqw;
  border-radius: .95cqw;
  object-fit: cover;
  flex: none;
  box-shadow: 0 .18cqw .44cqw rgba(0, 0, 0, .4);
}
.mh-window .mh-term-app.is-large {
  width: 5.8cqw;
  height: 5.8cqw;
  border-radius: 1.32cqw;
}

/* Capsule & Icon Action Buttons (1:1 AtelierCapsuleButtonStyle & AtelierIconButtonStyle) */
.mh-window .native-pill.mh-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55cqw;
  height: 3.65cqw;
  padding: 0 1.75cqw;
  border-radius: 999px;
  background: var(--m-pill);
  border: .09cqw solid var(--m-pill-edge);
  font-size: 1.54cqw;
  font-weight: 560;
  white-space: nowrap;
  transition: background .14s, filter .14s;
}
.mh-window .native-pill.mh-pill:hover {
  background: var(--m-pill-hover);
}
.mh-window .native-pill.mh-pill.is-accent {
  background: #0a6cff;
  border-color: transparent;
  color: #ffffff;
  font-weight: 610;
}
.mh-window .native-pill.mh-pill.is-accent:hover {
  background: #1d79ff;
}
.mh-window .native-pill.mh-pill .mh-g {
  width: 1.65cqw;
  height: 1.65cqw;
}
.mh-window .mh-trail {
  width: 1.48cqw;
  height: 1.48cqw;
  color: var(--m-dim);
  flex: none;
}
.mh-window .mh-dots-btn {
  flex: none;
  width: 3.2cqw;
  height: 3.2cqw;
  border-radius: .85cqw;
  display: grid;
  place-items: center;
  color: var(--m-soft);
  font-size: 1.7cqw;
  letter-spacing: .08em;
}
.mh-window .mh-dots-btn:hover {
  background: var(--m-hover);
  color: var(--m-ink);
}

/* ==========================================================================
   Secondary Sidebar Pages (Terminal · Shared Files · Paired · Other · Settings)
   ========================================================================== */
.mh-window .mh-page {
  padding: 2.35cqw 3.7cqw 3.4cqw;
}
.mh-window .mh-head {
  display: flex;
  align-items: center;
  gap: 1.75cqw;
  padding: 0 0 2.4cqw;
}
.mh-window .mh-head > div {
  min-width: 0;
  flex: 1;
}
.mh-window .mh-head h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .8cqw;
  font-size: 2.64cqw;
  font-weight: 660;
  letter-spacing: -.02em;
}
.mh-window .mh-head h3 .mh-plain-count {
  font-size: 1.76cqw;
  font-weight: 600;
  color: var(--m-soft);
}
.mh-window .mh-head small {
  display: block;
  margin-top: .32cqw;
  font-size: 1.56cqw;
  color: var(--m-soft);
}
.mh-window .mh-head-actions {
  display: flex;
  align-items: center;
  gap: .75cqw;
  margin-left: auto;
  flex: none;
}
.mh-window .mh-head-art .page-art {
  width: 5.8cqw;
  height: auto;
}
.mh-window .mh-comp-art {
  position: relative;
  width: 6.6cqw;
  height: 5.2cqw;
  flex: none;
}
.mh-window .mh-comp-art.is-trio {
  width: 7.35cqw;
  height: 5.3cqw;
}
.mh-window .mh-comp-art .comp-mac {
  position: absolute;
  left: 0;
  top: .25cqw;
  width: 5.05cqw;
  height: auto;
}
.mh-window .mh-comp-art .comp-ipad {
  position: absolute;
  left: 3.25cqw;
  bottom: .12cqw;
  height: 4.35cqw;
  width: auto;
  filter: drop-shadow(-.18cqw .18cqw .36cqw rgba(0, 0, 0, .48));
}
.mh-window .mh-comp-art .comp-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 3.95cqw;
  width: auto;
  filter: drop-shadow(-.2cqw .2cqw .4cqw rgba(0, 0, 0, .54));
}
.mh-window .mh-comp-art .comp-display {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.95cqw;
  height: auto;
}
.mh-window .mh-comp-art .comp-front-mac {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4.45cqw;
  height: auto;
  filter: drop-shadow(-.2cqw .2cqw .42cqw rgba(0, 0, 0, .52));
}
.mh-window .mh-comp-art .comp-mini {
  position: absolute;
  right: 0;
  bottom: .1cqw;
  width: 4.1cqw;
  height: auto;
  filter: drop-shadow(-.2cqw .2cqw .4cqw rgba(0, 0, 0, .5));
}
.mh-window .mh-quiet-icon {
  display: grid;
  place-items: center;
  width: 3.5cqw;
  height: 3.5cqw;
  border-radius: .92cqw;
  color: var(--m-soft);
  transition: background .14s ease, color .14s ease;
}
.mh-window .mh-quiet-icon:hover {
  background: var(--m-hover);
  color: var(--m-ink);
}
.mh-window .mh-quiet-icon .mh-g {
  width: 1.88cqw;
  height: 1.88cqw;
}

/* Separate card list (Paired Devices & Other Devices — 1:1 mac-paired-devices-page.png & mac-other-devices-clean.png) */
.mh-window .mh-card-list {
  display: grid;
  gap: 1.35cqw;
}
.mh-window .mh-sep-card {
  display: flex;
  align-items: center;
  gap: 1.65cqw;
  padding: 1.65cqw 2.0cqw;
  border-radius: 1.85cqw;
  background: var(--m-card);
  border: .1cqw solid var(--m-card-edge);
  box-shadow: 0 .35cqw 1.1cqw rgba(0, 0, 0, .2);
}
.mh-window .mh-sep-card > span:not(.mh-art-slot) {
  flex: 1;
  min-width: 0;
}
.mh-window .mh-sep-card b {
  display: flex;
  align-items: center;
  gap: .65cqw;
  font-size: 1.84cqw;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-window .mh-sep-card small {
  display: flex;
  align-items: center;
  gap: .58cqw;
  margin-top: .44cqw;
  font-size: 1.54cqw;
  color: var(--m-soft);
}
.mh-window .mh-sep-card small strong {
  color: var(--m-ink);
  font-weight: 520;
}
.mh-window .mh-not-conn {
  color: var(--m-soft);
  font-size: 1.54cqw;
  white-space: nowrap;
  flex: none;
}

/* Grouped list container (Settings, Files, Terminal) */
.mh-window .mh-group {
  border-radius: 1.85cqw;
  background: var(--m-card);
  border: .1cqw solid var(--m-card-edge);
  overflow: hidden;
  margin-bottom: 2.15cqw;
}
.mh-window .mh-row,
.mh-window .mh-group .mac-row {
  display: flex;
  align-items: center;
  gap: 1.55cqw;
  width: 100%;
  min-height: 6.5cqw;
  margin: 0;
  padding: 1.1cqw 1.9cqw;
  border-radius: 0;
  background: none;
  text-align: left;
}
.mh-window .mh-group button.mac-row:hover {
  background: var(--m-hover);
}
.mh-window .mh-row + .mh-row {
  box-shadow: inset 0 .1cqw 0 var(--m-line);
}
.mh-window .mh-row > span:not(.mh-tile):not(.mh-file-ico):not(.mh-art-slot) {
  flex: 1;
  min-width: 0;
}
.mh-window .mh-kind {
  flex: none;
  font-style: normal;
  font-size: 1.44cqw;
  color: var(--m-dim);
}
.mh-window .mh-thumb {
  width: 5.2cqw;
  height: 3.35cqw;
  border-radius: .6cqw;
  object-fit: cover;
  flex: none;
}
.mh-window .mh-file-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.8cqw;
  height: 3.8cqw;
  color: #9fb8d6;
}
.mh-window .mh-file-ico.is-folder { color: #5fb3f9; }
.mh-window .mh-file-ico .mh-g { width: 2.75cqw; height: 2.75cqw; }
.mh-window .mh-term-row-ico {
  width: 3.4cqw;
  display: grid;
  place-items: center;
  color: var(--m-soft);
  flex: none;
}
.mh-window .mh-empty {
  display: grid;
  justify-items: center;
  gap: 1.1cqw;
  min-height: 26cqw;
  align-content: center;
  color: var(--m-soft);
}
.mh-window .mh-empty b { font-size: 1.88cqw; color: var(--m-ink); }
.mh-window .mh-empty small { font-size: 1.48cqw; }
.mh-window .mac-receipt {
  display: block;
  min-height: 1.8cqw;
  font-size: 1.44cqw;
  color: #7cc4ff;
}
.mh-window[data-appearance="light"] .mac-receipt {
  color: #0064d6;
}

/* Settings (1:1 mac-settings-clean.png & settings-shared-normal-dark.png) */
.mh-window .mh-settings h4 {
  margin: 2.1cqw 0 1.05cqw;
  font-size: 1.7cqw;
  font-weight: 560;
  color: color-mix(in srgb, var(--m-ink) 90%, transparent);
}
.mh-window .mh-settings h4:first-of-type {
  margin-top: .4cqw;
}
.mh-window .mh-settings-head {
  padding-bottom: 1.55cqw;
}
.mh-window .mh-settings-head h3 {
  font-size: 2.88cqw;
}
.mh-window .mh-version {
  margin-left: 1.35cqw;
  color: var(--m-dim);
}
.mh-window .mh-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.7cqw;
  height: 3.7cqw;
  border-radius: .96cqw;
  color: #fff;
  box-shadow: inset 0 .1cqw 0 rgba(255, 255, 255, .28), 0 .14cqw .34cqw rgba(0, 0, 0, .26);
}
.mh-window .mh-tile .mh-g {
  width: 2.18cqw;
  height: 2.18cqw;
  stroke-width: 1.75;
}
.mh-tile.is-gray { background: linear-gradient(180deg, #767a84, #525660); }
.mh-tile.is-indigo { background: linear-gradient(180deg, #6264ff, #423ee0); }
.mh-tile.is-purple { background: linear-gradient(180deg, #a864f7, #7d36de); }
.mh-tile.is-sky { background: linear-gradient(180deg, #5ebcf7, #2686ea); }
.mh-tile.is-blue { background: linear-gradient(180deg, #4b94fa, #1c66e5); }
.mh-tile.is-green { background: linear-gradient(180deg, #3fd068, #1fa347); }
.mh-tile.is-orange { background: linear-gradient(180deg, #ff9d3b, #e86c14); }
.mh-tile.is-red { background: linear-gradient(180deg, #ff693c, #e03e1a); }
.mh-window .mh-switch { flex: none; display: inline-flex; }
.mh-window .mh-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 1.44cqw !important;
}

/* Segmented Appearance & Mode Pills in Settings (1:1 mac-settings-clean.png) */
.mh-seg {
  display: inline-flex;
  align-items: center;
  padding: .28cqw;
  gap: .22cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: .09cqw solid rgba(255, 255, 255, .1);
  flex: none;
}
.mh-window[data-appearance="light"] .mh-seg {
  background: rgba(0, 0, 0, .055);
  border-color: rgba(0, 0, 0, .09);
}
.mh-seg button {
  padding: .42cqw 1.18cqw;
  border-radius: 999px;
  font-size: 1.44cqw;
  font-weight: 560;
  color: var(--m-soft);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.mh-seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .16);
  color: var(--m-ink);
  font-weight: 620;
  box-shadow: inset 0 .08cqw 0 rgba(255, 255, 255, .18);
}
.mh-window[data-appearance="light"] .mh-seg button[aria-pressed="true"] {
  background: #ffffff;
  color: #16181c;
  box-shadow: 0 .12cqw .4cqw rgba(0, 0, 0, .1);
}
.mh-window .mh-popup {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .62cqw;
  padding: .48cqw .95cqw .48cqw 1.25cqw;
  border-radius: 999px;
  background: var(--m-pill);
  border: .09cqw solid var(--m-pill-edge);
  font-size: 1.46cqw;
  font-weight: 560;
}
.mh-window .mh-popup:hover {
  background: var(--m-pill-hover);
}
.mh-window .mh-popup .mh-g { width: 1.45cqw; height: 1.45cqw; }

/* ==========================================================================
   Popovers & Nebula Pairing Card Overlay (1:1 mac-overview-qr-clean.png)
   ========================================================================== */
.mac-pop {
  position: absolute;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 35%;
  padding: 2.2cqw;
  --pop-bg: rgba(24, 27, 35, .97);
  --pop-edge: rgba(255, 255, 255, .15);
  background: var(--pop-bg);
  border: .11cqw solid var(--pop-edge);
  border-radius: 1.85cqw;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 2.4cqw 5.6cqw rgba(0, 0, 0, .62), inset 0 .1cqw 0 rgba(255, 255, 255, .14);
  z-index: 8;
  color: var(--m-ink);
  font-size: 1.6cqw;
}
.mh-window[data-appearance="light"] .mac-pop {
  --pop-bg: rgba(252, 253, 255, .98);
  --pop-edge: rgba(0, 0, 0, .11);
  box-shadow: 0 1.8cqw 4.2cqw rgba(0, 0, 0, .18);
}
.mac-pop[hidden] { display: none !important; }
.mac-pop::before {
  content: "";
  position: absolute;
  left: var(--pop-tip, 50%);
  width: 1.25cqw;
  height: 1.25cqw;
  background: var(--pop-bg);
  pointer-events: none;
}
.mac-pop[data-side="below"]::before {
  top: 0;
  border-top: .11cqw solid var(--pop-edge);
  border-left: .11cqw solid var(--pop-edge);
  transform: translate(-50%, -54%) rotate(45deg);
}
.mac-pop[data-side="above"]::before {
  bottom: 0;
  border-bottom: .11cqw solid var(--pop-edge);
  border-right: .11cqw solid var(--pop-edge);
  transform: translate(-50%, 54%) rotate(45deg);
}
.mac-pop[data-side="center"]::before,
.mac-pop[data-side="menu"]::before { display: none; }
.mac-pop .pop-body { min-height: 0; overflow: auto; scrollbar-width: thin; }
.mac-pop .pop-body h4 { padding-inline-end: 3cqw; margin: 0 0 1.05cqw; font-size: 1.9cqw; font-weight: 630; }
.mac-pop p, .mac-pop code { margin: .8cqw 0; color: var(--m-soft); display: block; line-height: 1.55; }
.mac-pop .pop-close {
  position: absolute;
  z-index: 2;
  right: 1.1cqw;
  top: 1.1cqw;
  display: grid;
  place-items: center;
  width: 2.8cqw;
  height: 2.8cqw;
  border-radius: 50%;
  color: var(--m-soft);
}
.mac-pop .pop-close:hover { background: var(--m-hover); color: var(--m-ink); }
.pop-body button {
  display: inline-block;
  padding: .6cqw 1.5cqw;
  margin: .75cqw .65cqw 0 0;
  border-radius: 999px;
  background: var(--m-pill);
  font-weight: 540;
}

/* 1:1 HostConnectQRCardOverlay in mac-overview-qr-clean.png */
.mh-window .mac-pop.is-nebula {
  width: 29.6%;
  padding: 2.1cqw 1.95cqw 1.9cqw;
  border-radius: 2.45cqw;
  --pop-bg: #0c0e12;
  --pop-edge: rgba(255, 255, 255, .13);
  background: linear-gradient(170deg, #101319 0%, #0a0c10 64%, #08090d 100%);
  border: .11cqw solid rgba(255, 255, 255, .13);
  box-shadow: 0 3.2cqw 7.2cqw rgba(0, 0, 0, .76), inset 0 .1cqw 0 rgba(255, 255, 255, .14);
  text-align: center;
}
.mh-window .mac-pop.is-nebula .pop-close { display: none; }
.mh-window[data-appearance="light"] .mac-pop.is-nebula {
  --pop-bg: #fcfdff;
  --pop-edge: rgba(0, 0, 0, .1);
  background: linear-gradient(165deg, #ffffff, #f2f4f8);
}
.mh-window .mac-pop.is-nebula .pop-body { overflow: visible; }
.mh-window .mac-pop.is-nebula .pop-body h4 {
  padding: 0;
  margin: 0;
  font-size: 1.78cqw;
  font-weight: 650;
  letter-spacing: -.012em;
  text-align: center;
}
.mh-nebula-sub {
  display: block;
  margin-top: .38cqw;
  font-size: 1.32cqw;
  color: var(--m-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-nebula-stage {
  width: 86%;
  aspect-ratio: 1;
  margin: 1.35cqw auto 1.25cqw;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(21, 44, 82, .62) 0%, #0b0d12 66%, transparent 100%);
}
.mh-window[data-appearance="light"] .mh-nebula-stage {
  background: radial-gradient(circle at 50% 50%, #152847 0%, #0a0e17 68%, #06080d 100%);
  box-shadow: 0 .8cqw 2.4cqw rgba(0, 0, 0, .28);
}
.mh-window[data-appearance="light"] .mh-gear-bore {
  fill: #dcdfe6;
  stroke: rgba(0, 0, 0, .18);
}
.mh-nebula-wait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62cqw;
  font-size: 1.38cqw;
  font-weight: 560;
  color: color-mix(in srgb, var(--m-ink) 88%, transparent);
}
.mh-nebula-wait i {
  width: .76cqw;
  height: .76cqw;
  border-radius: 50%;
  background: #30d158;
}
.mh-nebula-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75cqw;
  margin-top: 1.35cqw;
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-copy-code {
  display: inline-flex;
  align-items: center;
  gap: .58cqw;
  height: 3.55cqw;
  padding: 0 1.55cqw;
  margin: 0;
  border-radius: 999px;
  background: var(--m-pill);
  border: .1cqw solid var(--m-pill-edge);
  color: var(--m-ink);
  font-size: 1.36cqw;
  font-weight: 560;
  white-space: nowrap;
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-copy-code:hover {
  background: var(--m-pill-hover);
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-copy-code .mh-g {
  width: 1.38cqw;
  height: 1.38cqw;
  color: var(--m-soft);
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-regen {
  display: grid;
  place-items: center;
  width: 3.55cqw;
  height: 3.55cqw;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--m-pill);
  border: .1cqw solid var(--m-pill-edge);
  color: var(--m-soft);
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-regen:hover {
  background: var(--m-pill-hover);
  color: var(--m-ink);
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-regen .mh-g {
  width: 1.48cqw;
  height: 1.48cqw;
  transition: transform .48s cubic-bezier(.22, .9, .3, 1);
}
.mh-nebula-code {
  display: inline-block;
  margin: .05cqw auto .15cqw;
  padding: .36cqw 1.35cqw;
  border-radius: .85cqw;
  background: rgba(255, 255, 255, .065);
  border: .09cqw solid rgba(255, 255, 255, .13);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.66cqw;
  font-weight: 680;
  letter-spacing: .12em;
  color: var(--m-ink);
}
.mh-window[data-appearance="light"] .mh-nebula-code {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .1);
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-nebula-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.55cqw;
  padding: 0 1.45cqw;
  margin: 0;
  border-radius: 999px;
  background: #0a6cff;
  border: 0;
  color: #ffffff;
  font-size: 1.36cqw;
  font-weight: 610;
  white-space: nowrap;
}
.mh-window .mac-pop.is-nebula .pop-body button.mh-nebula-done:hover {
  background: #1e7bff;
}

/* Native macOS Contextual Menu (.mac-pop.is-menu) — zero modal chrome */
.mh-window .mac-pop.is-menu {
  width: 29.5%;
  padding: .56cqw;
  border-radius: 1.35cqw;
  --pop-bg: rgba(34, 37, 46, .96);
  --pop-edge: rgba(255, 255, 255, .16);
  background: var(--pop-bg);
  border: .1cqw solid var(--pop-edge);
  box-shadow: 0 1.6cqw 3.8cqw rgba(0, 0, 0, .58), inset 0 .08cqw 0 rgba(255, 255, 255, .16);
}
.mh-window[data-appearance="light"] .mac-pop.is-menu {
  --pop-bg: rgba(248, 249, 252, .97);
  --pop-edge: rgba(0, 0, 0, .12);
  box-shadow: 0 1.2cqw 3.0cqw rgba(0, 0, 0, .18);
}
.mh-window .mac-pop.is-menu .pop-body {
  display: flex;
  flex-direction: column;
  gap: .14cqw;
  overflow: hidden;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item {
  display: flex;
  align-items: center;
  gap: .82cqw;
  width: 100%;
  margin: 0;
  padding: .62cqw .95cqw;
  border-radius: .82cqw;
  background: transparent;
  color: var(--m-ink);
  font-size: 1.46cqw;
  font-weight: 510;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item:hover {
  background: #0a6cff;
  color: #ffffff;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item .mh-g {
  width: 1.56cqw;
  height: 1.56cqw;
  color: var(--m-soft);
  flex: none;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item:hover .mh-g {
  color: #ffffff;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item.is-danger {
  color: #ff6961;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item.is-danger .mh-g {
  color: #ff6961;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item.is-danger:hover,
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item.is-danger:hover .mh-g {
  background: #e03e36;
  color: #ffffff;
}
.mh-menu-sep {
  height: .09cqw;
  margin: .36cqw .65cqw;
  background: var(--m-line);
}
.mh-menu-label {
  padding: .42cqw .95cqw .26cqw;
  font-size: 1.24cqw;
  font-weight: 610;
  color: var(--m-dim);
}
.mh-menu-check {
  width: 1.35cqw;
  flex: none;
  text-align: center;
  font-weight: 680;
  color: #38bdf8;
}
.mh-window .mac-pop.is-menu .pop-body button.mh-menu-item:hover .mh-menu-check {
  color: #ffffff;
}

/* Compact Native Card Popover (.mac-pop.is-card — Add Another Mac) */
.mh-window .mac-pop.is-card {
  width: 40%;
  padding: 1.85cqw 1.95cqw;
  border-radius: 1.85cqw;
}
.mh-card-pop-lead {
  margin: 0 0 1.15cqw !important;
  font-size: 1.42cqw;
  line-height: 1.48 !important;
  color: var(--m-soft);
}
.mh-pair-code-row {
  display: flex;
  align-items: center;
  gap: .75cqw;
}
.mh-pair-code-row .mh-relay-input {
  flex: 1;
  width: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 640;
  letter-spacing: .08em;
}

/* 1:1 AtelierFiles.swift — Unboxed 34pt single-line file rows */
.mh-window .mh-bounded .mh-card-list,
.mh-window .mh-bounded .mh-group,
.mh-window .mh-bounded h4 {
  max-width: 84.5cqw;
}
.mh-window .mh-files-list {
  display: flex;
  flex-direction: column;
  gap: .18cqw;
  margin-top: .2cqw;
}
.mh-window .mh-file-row {
  display: flex;
  align-items: center;
  gap: .85cqw;
  width: 100%;
  height: 4.5cqw;
  padding: 0 1.25cqw 0 .45cqw;
  border-radius: .88cqw;
  background: transparent;
  color: var(--m-ink);
  text-align: left;
  transition: background .12s ease;
}
.mh-window .mh-file-row:hover {
  background: var(--m-hover);
}
.mh-window .mh-file-row.is-selected {
  background: rgba(10, 108, 255, .24);
}
.mh-window[data-appearance="light"] .mh-file-row.is-selected {
  background: rgba(10, 108, 255, .14);
}
.mh-window .mh-file-rail {
  width: 4.5cqw;
  height: 4.5cqw;
  display: grid;
  place-items: center;
  flex: none;
}
.mh-window .mh-file-row-folder {
  width: 2.78cqw;
  height: auto;
  display: block;
  filter: drop-shadow(0 .1cqw .24cqw rgba(0, 0, 0, .3));
}
.mh-window .mh-file-row-glyph {
  display: grid;
  place-items: center;
  width: 2.65cqw;
  height: 2.65cqw;
  color: #9fb8d6;
}
.mh-window .mh-file-row-glyph.is-video {
  color: #a78bfa;
}
.mh-window .mh-file-row-glyph .mh-g {
  width: 2.38cqw;
  height: 2.38cqw;
}
.mh-window .mh-file-name {
  flex: 1;
  min-width: 0;
  font-size: 1.72cqw;
  font-weight: 460;
  letter-spacing: -.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-window .mh-file-detail {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.44cqw;
  color: var(--m-soft);
  white-space: nowrap;
}
.mh-window .mh-back-btn {
  margin-right: -.55cqw;
}

/* 1:1 CompanionCapabilitySettings.swift — Video Quality & About refinements */
.mh-window .mh-row.is-dimmed {
  opacity: .52;
}
.mh-window .mh-row.is-dimmed .mh-popup {
  cursor: default;
}
.mh-window .mh-trailing-mono {
  margin: 0;
  display: inline-block;
  flex: none;
  max-width: 30cqw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.44cqw;
  color: var(--m-soft);
}
.mh-window .mh-guide-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 3.2cqw;
  padding: 0 1.15cqw;
  border-radius: 999px;
  background: rgba(56, 189, 248, .15);
  border: .09cqw solid rgba(56, 189, 248, .28);
  color: #7dd3fc;
  font-size: 1.34cqw;
  font-weight: 580;
  white-space: nowrap;
}
.mh-window .mh-guide-pill:hover {
  background: rgba(56, 189, 248, .24);
}
.mh-window[data-appearance="light"] .mh-guide-pill {
  background: rgba(2, 132, 199, .1);
  border-color: rgba(2, 132, 199, .22);
  color: #0369a1;
}
.mh-window .mh-relay-row .mh-relay-input {
  width: 17.5cqw;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
