/* Новости и предложения */

.newsb {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0));
  right: 14px;
  z-index: 3;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: color-mix(in srgb, var(--card) 85%, transparent) !important;
  backdrop-filter: blur(8px);
}

.nb {
  position: relative;
}

.ndot {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--no);
  box-shadow: 0 0 0 2px var(--card);
  display: none;
}

.has-new .ndot {
  display: block;
}

#dlgN {
  width: min(560px, 94vw);
  padding: 16px;
  max-height: 85dvh;
}

.nadd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed var(--acc);
  border-radius: 14px;
}

.nadd input {
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--tx);
}

.nadd textarea {
  height: 90px;
}

.nitem {
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--card) 92%, var(--acc) 3%);
}

.nitem .nh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.nitem .nh b {
  font-size: 15px;
  flex: 1;
}

.nitem small {
  color: var(--mut);
  font-size: 12px;
  white-space: nowrap;
}

.nitem .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--acc);
  border-radius: 6px;
  padding: 3px 6px;
}

.nitem p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.nitem ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.nitem .ndel {
  padding: 3px 8px;
  font-size: 12px;
}

.ibadge {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--no);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.ibadge.on {
  display: inline-flex;
}

#ideas {
  margin-top: 14px;
}

#ideas textarea {
  height: 90px;
}

.idea {
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

.idea .ih {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--mut);
}

.idea .ih b {
  color: var(--tx);
  font-size: 14px;
}

.idea .itx {
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}

.ist {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ist.new {
  color: #fff;
  background: var(--acc);
}

.ist.work {
  color: var(--late);
  background: color-mix(in srgb, var(--late) 16%, transparent);
}

.ist.done {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 16%, transparent);
}

.ist.no {
  color: var(--mut);
  background: var(--we);
}

.irep {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--acc) 9%, transparent);
  font-size: 14px;
  white-space: pre-line;
}

.irep small {
  display: block;
  color: var(--mut);
  font-size: 12px;
  margin-bottom: 2px;
}

.iadm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.iadm textarea {
  height: 64px;
}

.iadm .bar {
  margin: 0;
}

.iadm select {
  width: auto;
  flex: none;
}
