/* Sumongo motion — Email → Task scene (sm-email-to-task.css)
 * Depends on sm-motion.css. All sizes are em-based so the stage scales as one unit. */
.sm-e2t .sm-stage {
  display: grid;
  grid-template-columns: 44fr 56fr;
  gap: 3.4em;
  align-items: center;
  padding: 2.2em 2.6em;
}
.sm-e2t .sm-col { position: relative; min-width: 0; }

/* ----- the email ---------------------------------------------------- */
.sm-mail .sm-win-body { padding: .6em 1.2em 1em; }
.sm-mail .sm-addr { color: var(--sm-faint); font-size: .86em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-field-bcc > div { position: relative; overflow: visible; }
.sm-bcc { color: var(--sm-accent-ink); font-weight: 500; }
.sm-hint-addr { margin-left: .9em; z-index: 3; }
.sm-piece-person { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; white-space: nowrap; }
.sm-piece-subject { display: inline-block; font-weight: 550; color: var(--sm-ink); white-space: nowrap; }
.sm-piece-body { margin: .9em 0 .8em; font-size: .9em; line-height: 1.55; color: var(--sm-ink-2); }
.sm-piece-file { margin: 0; }
.sm-dim { color: var(--sm-faint); font-weight: 400; }
.sm-mail-foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.1em; }
.sm-mail-note { font-size: .74em; color: var(--sm-faint); }
.sm-send { position: relative; min-width: 6.2em; }
.sm-send-label, .sm-send-sent { display: inline-flex; align-items: center; gap: .45em; }
.sm-send-sent { position: absolute; inset: 0; justify-content: center; }
.sm-send-sent .sm-svg { stroke-width: 2.4; }

/* ----- contact + project cards (beat 4) ----------------------------- */
.sm-you-after { position: absolute; inset: 0; display: grid; align-content: center; gap: 1.1em; pointer-events: none; }
.sm-contact-id { display: flex; align-items: center; gap: .7em; margin-bottom: .9em; }
.sm-contact-id .sm-avatar { width: 2.2em; height: 2.2em; font-size: .86em; }
.sm-contact-id strong { display: block; font-weight: 550; font-size: .95em; }
.sm-contact-id small { display: block; font-size: .78em; color: var(--sm-muted); }
.sm-activity { display: flex; align-items: flex-start; gap: .7em; padding: .7em .8em; border-radius: 8px; background: var(--sm-accent-tint); border: 1px solid var(--sm-accent-line); }
.sm-activity .sm-svg { color: var(--sm-accent-ink); margin-top: .15em; }
.sm-activity strong { display: block; font-size: .84em; font-weight: 550; }
.sm-activity small { display: block; font-size: .76em; color: var(--sm-muted); margin-top: .15em; }
.sm-projectcard .sm-win-body { display: grid; gap: .45em; }
.sm-projectcard .sm-row.is-faint { padding-top: .5em; padding-bottom: .5em; }
.sm-proj-target { border-color: var(--sm-accent-line); background: var(--sm-accent-tint); }

/* ----- Sumongo: My work -------------------------------------------- */
.sm-app { overflow: visible; }
.sm-app-top { display: flex; align-items: center; gap: 1em; padding: .8em 1.1em; border-bottom: 1px solid var(--sm-line-soft); font-size: .86em; }
.sm-app-top .sm-brand { font-size: .95em; }
.sm-crumb { flex: 1 1 auto; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-crumb i { font-style: normal; color: var(--sm-faint); margin: 0 .3em; }
.sm-crumb strong { color: var(--sm-ink); font-weight: 550; }
.sm-app-body { padding: .9em 1.1em 1.1em; display: grid; gap: .45em; }
.sm-app-body .sm-group { margin-top: .4em; }
.sm-app-body .sm-group:first-child { margin-top: 0; }
.sm-slot { position: relative; height: 7em; }
.sm-slot-backlog { z-index: 2; }
.sm-backlog-rest { display: grid; gap: .45em; transform: translateY(-7.45em); will-change: transform; } /* covers the slot until the task lands */
.sm-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 1.5em; border: 1.5px dashed var(--sm-line); border-radius: 8px;
  color: var(--sm-faint); font-size: .84em;
}
.sm-task {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: .4em;
  padding: .85em .95em;
  background: var(--sm-paper); border: 1px solid var(--sm-accent-line); border-radius: 9px;
  box-shadow: 0 1px 2px rgba(42, 35, 56, .04);
  will-change: transform;
}
.sm-task-head { display: flex; align-items: center; gap: .6em; min-height: 1.4em; }
.sm-task-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.02em; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-task-notes { margin: 0; padding-left: 1.75em; font-size: .84em; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-task-chips { display: flex; align-items: center; gap: .45em; padding-left: 1.75em; flex-wrap: nowrap; overflow: visible; }
.sm-task-chips .sm-chip { font-size: .76em; padding: .3em .6em; }
.sm-task-chips .sm-avatar { width: 1.3em; height: 1.3em; font-size: .72em; }
.sm-task-plan { position: relative; color: var(--sm-muted); }
.sm-task-plan .sm-chev { width: .9em; height: .9em; opacity: .7; }
.sm-task-today { position: absolute; right: .95em; bottom: .85em; }
.sm-popover {
  position: absolute; right: .9em; bottom: 3.2em; z-index: 4;
  display: grid; gap: .15em; min-width: 9em;
  padding: .45em; border-radius: 8px;
  background: var(--sm-paper); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-lift);
  transform-origin: 85% 100%;
}
.sm-pop-label { font-size: .68em; color: var(--sm-faint); padding: .35em .6em .25em; letter-spacing: .04em; text-transform: uppercase; }
.sm-pop-item { font-size: .82em; padding: .4em .6em; border-radius: 5px; color: var(--sm-ink-2); }
.sm-pop-today { background: var(--sm-accent-tint); color: var(--sm-accent-ink); font-weight: 550; }

/* ----- narrow: stack the two sides ---------------------------------- */
@container (max-width: 640px) {
  .sm-e2t .sm-stage {
    grid-template-columns: 1fr;
    gap: 1.6em;
    padding: 1.4em 1.2em;
    aspect-ratio: 4 / 5;
    font-size: clamp(8px, 2.5cqw, 12px);
    align-content: center;
  }
  .sm-you-after { grid-template-columns: 1fr 1fr; gap: .8em; align-content: stretch; }
  .sm-mail-note { display: none; }
  .sm-task-notes { display: none; }
  .sm-slot { height: 5.6em; }
  .sm-backlog-rest { transform: translateY(-6.05em); }
  .sm-popover { right: .8em; bottom: 2.9em; }
}
