/* ==========================================================================
   Janelas de app (Chrome → Receita Federal, Gmail) — as mesmas da cena da
   área de trabalho da home e do modo controle do /painel. Escala em rem (--du).
   A posição e os estados da cena da home ficam em experience.css.
   ========================================================================== */

.dwin {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 0 0.6rem 0.6rem;
  border-radius: 1.9rem;
  background: rgba(142, 150, 162, 0.46);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset, 0 3.2rem 7rem -2.4rem rgba(15, 25, 45, 0.5),
    0 1rem 2.4rem -1rem rgba(15, 25, 45, 0.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  transform-origin: 50% 100%;
  transition: transform 0.95s var(--spring-soft), opacity 0.5s var(--ease), filter 0.6s var(--ease);
}
.dwin-title {
  flex: none;
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 0.9rem 0 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.dwin-title img {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.15rem;
  border-radius: 0.4rem;
  background: #fff;
}
.dwin-title .i {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: auto;
}
.dwin-body {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 1.3rem;
  overflow: hidden;
  background: #fff;
}
.dwin-body.win {
  display: flex;
  flex-direction: column;
}
.win-body--desk {
  grid-template-columns: 17.1rem 1fr;
}
.win-body--desk .rf-main {
  padding-left: 2.4rem;
}
/* Gmail */
.gm {
  font-family: var(--ui);
  color: #1f1f1f;
  background: #f6f8fc;
}
.gm-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0 1.6rem;
}
.gm-burger .i,
.gm-tools .i {
  width: 1.6rem;
  height: 1.6rem;
  color: #444746;
}
.gm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 12rem;
  font-size: 1.75rem;
  color: #5f6368;
}
.gm-logo b {
  font-weight: 400;
}
.gm-logo img {
  width: 2.3rem;
  height: auto;
}
.gm-search {
  flex: 1;
  max-width: 44rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem;
  border-radius: 2rem;
  background: #e9eef6;
  font-size: 1.25rem;
  color: #5f6368;
}
.gm-search > span {
  flex: 1;
}
.gm-search .i {
  width: 1.5rem;
  height: 1.5rem;
}
.gm-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.gm-avatar {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #1f2328;
  color: #fff;
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
}
.gm-nav {
  position: absolute;
  left: 0;
  top: 5.4rem;
  bottom: 0;
  width: 17.6rem;
  padding: 0.4rem 1rem 0 0;
  font-size: 1.12rem;
}
.gm-compose {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  height: 4.4rem;
  margin: 0.2rem 0 1.2rem 0.8rem;
  padding: 0 2rem 0 1.6rem;
  border-radius: 1.4rem;
  background: #c2e7ff;
  font-size: 1.2rem;
  font-weight: 500;
}
.gm-compose .i {
  width: 1.5rem;
  height: 1.5rem;
}
.gm-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gm-nav li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  height: 2.8rem;
  padding: 0 1.2rem 0 1.9rem;
  white-space: nowrap;
  border-radius: 0 1.4rem 1.4rem 0;
  color: #202124;
}
.gm-nav li b {
  margin-left: auto;
  font-weight: 600;
  font-size: 1.05rem;
}
.gm-nav li .i {
  width: 1.45rem;
  height: 1.45rem;
  color: #444746;
}
.gm-nav li.is-on {
  background: #d3e3fd;
  font-weight: 600;
}
.gm-labels-title {
  margin: 1.4rem 0 0.4rem 2.2rem;
  font-size: 1.25rem;
  font-weight: 500;
}
.gm-labels li {
  height: 2.5rem;
  font-size: 1.08rem;
}
.gm-labels li i {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;
  background: #444746;
}
.gm-labels li b {
  font-weight: 400;
  color: #5f6368;
}
.gm-main {
  position: absolute;
  left: 17.6rem;
  right: 4.4rem;
  top: 5.4rem;
  bottom: 0.8rem;
  padding: 0 2rem;
  border-radius: 1.4rem;
  background: #fff;
  overflow: hidden;
}
.gm-toolbar {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 4.2rem;
  color: #444746;
  font-size: 1.05rem;
}
.gm-toolbar .i {
  width: 1.5rem;
  height: 1.5rem;
}
.gm-toolbar i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.3rem;
  border: 1.5px solid #74777c;
}
.gm-toolbar span {
  margin-left: auto;
  color: #5f6368;
}
.gm-subject {
  margin: 0.4rem 0 1.4rem 5.4rem;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.gm-subject em {
  margin-left: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  background: #ececec;
  font-style: normal;
  font-size: 1rem;
  vertical-align: 0.3rem;
  color: #444;
}
.gm-msg {
  position: relative;
  padding: 0 0 1.4rem 5.4rem;
}
.gm-av {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 1.5rem;
  font-weight: 500;
}
.gm-av--a {
  background: #12877a;
}
.gm-av--e {
  background: #1f2328;
}
.gm-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.22rem;
}
.gm-msg-head span,
.gm-to {
  font-size: 1.05rem;
  color: #5f6368;
}
.gm-msg-head time {
  margin-left: auto;
  font-size: 1.05rem;
  color: #5f6368;
}
.gm-to {
  margin: 0.2rem 0 0.8rem;
}
.gm-text p {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: #222;
}
.gm-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3rem;
  padding: 0 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid #dadce0;
  font-size: 1.1rem;
  color: #3c4043;
}
.gm-attach .i {
  width: 1.4rem;
  height: 1.4rem;
  color: #d93025;
}
.gm-attach small {
  margin-left: 0.4rem;
  color: #80868b;
}
.gm-msg--sent {
  padding-top: 1.4rem;
  border-top: 1px solid #eceff1;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.gm-msg--sent .gm-av {
  top: 1.4rem;
}
.gm-msg--sent.is-in {
  opacity: 1;
  transform: none;
}
.gm-reply {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.6rem;
  height: 17rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.gm-reply.is-open {
  opacity: 1;
  transform: none;
}
.gm-reply.is-gone {
  opacity: 0;
  transform: translateY(-1rem) scale(0.98);
}
/* fechada, o cursor piscando para, mas só depois do fade de 0.4s */
.gm-reply:not(.is-open) {
  --ep-play: paused;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease), --ep-play 0s linear 0.4s;
  transition-behavior: normal, normal, allow-discrete;
}
.gm-reply-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: #5f6368;
}
.gm-reply-head .i {
  width: 1.4rem;
  height: 1.4rem;
}
.gm-reply-text {
  min-height: 5.6rem;
  margin: 0.9rem 0;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: #222;
}
.gm-reply-text .rf-caret {
  display: inline-block;
  vertical-align: -0.2rem;
}
.gm-reply-foot {
  position: absolute;
  left: 1.6rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: #444746;
}
.gm-reply-foot .i {
  width: 1.5rem;
  height: 1.5rem;
}
.gm-send {
  display: inline-grid;
  place-items: center;
  height: 3.4rem;
  padding: 0 2.2rem;
  border-radius: 1.7rem;
  background: #0b57d0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}
.gm-send.is-pressed {
  animation: press 0.45s var(--ease);
}
.gm-actions {
  position: absolute;
  left: 7.4rem;
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.2s;
}
.gm-actions.is-in {
  opacity: 1;
}
.gm-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.4rem;
  padding: 0 1.6rem;
  border-radius: 1.7rem;
  border: 1px solid #747775;
  font-size: 1.15rem;
  color: #444746;
}
.gm-actions .i {
  width: 1.4rem;
  height: 1.4rem;
}
.gm-rail {
  position: absolute;
  right: 0;
  top: 6.2rem;
  width: 4.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.gm-rail i {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
}
.gm-rail .c1 {
  background: linear-gradient(135deg, #4285f4 50%, #34a853 50%);
}
.gm-rail .c2 {
  background: #fbbc04;
  border-radius: 0.4rem;
}
.gm-rail .c3 {
  border-radius: 50%;
  background: conic-gradient(#1a73e8 0 75%, #fff 0);
  box-shadow: inset 0 0 0 0.4rem #fff, 0 0 0 1px #1a73e8;
}
.gm-rail .c4 {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1a73e8 0 26%, transparent 27%),
    radial-gradient(circle at 50% 108%, #1a73e8 0 48%, transparent 49%);
}
.gm-toast {
  position: absolute;
  z-index: 3;
  left: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 4.4rem;
  padding: 0 1.6rem 0 2rem;
  border-radius: 0.6rem;
  background: #1f1f1f;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.45s var(--ease) 0.25s, transform 0.6s var(--spring) 0.25s;
}
.gm-toast b {
  font-weight: 500;
  color: #a8c7fa;
}
.gm-toast .i {
  width: 1.2rem;
  height: 1.2rem;
}
.gm-toast.is-in {
  opacity: 1;
  transform: none;
}

