/* Drexorra Mail · Write a mail (compose box) */
.cmp {
  position: fixed;
  right: 24px;
  bottom: 0;
  width: 560px;
  max-width: calc(100vw - 20px);
  background: var(--card);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  z-index: 40;
  max-height: calc(100vh - 80px);
}
.cmp.max {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  width: min(900px, 94vw);
  height: min(720px, 88vh);
  border-radius: 14px;
}
.cmp.min .cbody {
  display: none;
}
.chead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 18px;
  background: var(--teal2);
  color: #fff;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
}
.chead b {
  flex: 1;
  font-size: 14.5px;
}
.chead .ib {
  color: #ddefec;
  width: 30px;
  height: 30px;
}
.chead .ib:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cbody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.crow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 6px 14px;
  position: relative;
}
.crow > label {
  color: var(--muted);
  font-size: 14px;
  padding-top: 7px;
  min-width: 30px;
}
.crow input.plain {
  border: 0;
  flex: 1;
  padding: 7px 2px;
  min-width: 120px;
  background: none;
}
.crow input.plain:focus {
  outline: none;
}
.toks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  align-items: center;
}
.tok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border-radius: 16px;
  padding: 3px 6px 3px 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.tok.grp {
  background: var(--teal3);
  color: var(--teal);
}
.tok button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  padding: 0 4px;
}
.sugg {
  position: absolute;
  left: 44px;
  right: 14px;
  top: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 5;
  max-height: 280px;
  overflow-y: auto;
}
.sugg div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.sugg div.on,
.sugg div:hover {
  background: var(--sel);
}
.sugg small {
  color: var(--muted);
}
.ccl {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding-top: 7px;
}
.ced {
  flex: 1;
  padding: 14px 16px;
  min-height: 140px;
  line-height: 1.6;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  cursor: text;
}
.ced:focus {
  outline: none;
}
.ced:empty::before {
  content: attr(data-ph);
  color: var(--muted);
  pointer-events: none;
}
.ced img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  border-radius: 10px;
  margin: 6px 0;
  border: 1px solid var(--line);
  cursor: default;
}
.ced img.sel {
  outline: 3px solid var(--teal, #0e7c66);
  outline-offset: 2px;
}
.cfiles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 14px 8px;
}
.cfile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border-radius: 8px;
  padding: 5px 8px 5px 12px;
  font-size: 13px;
  font-weight: 700;
}
.cfile button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}
.cfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.cfoot .sp {
  flex: 1;
}
.cnote {
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 16px 8px;
}
.toast {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: #17211f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: block;
    position: fixed;
    inset: 64px auto 0 0;
    width: 260px;
    background: var(--card);
    z-index: 30;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
  }
  .main {
    margin: 0;
    border-radius: 0;
  }
  .row {
    grid-template-columns: 30px 26px 1fr auto;
  }
  .row .from {
    grid-column: 3;
  }
  .row .line {
    grid-column: 3;
    display: none;
  }
  .me .who {
    display: none;
  }
  .mob {
    display: inline-grid !important;
  }
  .read-wrap {
    padding: 8px 14px 24px;
  }
  .msg-b,
  .atts,
  .ractions {
    margin-left: 0;
  }
}
.mob {
  display: none !important;
}
