/* Home hero interactive inbox demo (ported from onsites_websites ProductDemoInbox)
   Muji-paper look: rail / channel sidebar / conversation list / thread / details */
@charset "UTF-8";

.home-demo{
  position: relative;
  width: min(1380px, 100%);
  margin: 32px auto 0;
}

.home-demo__frame{
  overflow: hidden;
  border: 1px solid var(--line, #e4e1d8);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 24px 48px rgba(37, 36, 33, 0.08),
    0 4px 12px rgba(37, 36, 33, 0.04);
}

.home-demo__chrome{
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #f4f2ee 0, #f7f5f1 70px, #ffffff 70px);
  border-bottom: 1px solid #e5e5e5;
}

.home-demo__chrome span{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8cdd6;
}

.home-demo__chrome span:first-child{ background: #f4b8ab; }
.home-demo__chrome span:nth-child(2){ background: #f0d9a8; }
.home-demo__chrome span:nth-child(3){ background: #b8dfc4; }

.home-demo__app{
  --dh-rail-w: 70px;
  --dh-sidebar-w: 220px;
  --dh-list-w: 260px;
  --mj-rail: #f4f2ee;
  --mj-sidebar: #f7f5f1;
  --mj-canvas: #ffffff;
  --mj-surface: #ffffff;
  --mj-sunken: #f8f8f8;
  --mj-ink: #0f0e0c;
  --mj-ink-2: #2a2622;
  --mj-ink-3: #4a453f;
  --mj-line: #e5e5e5;
  --mj-line-hard: #d4d4d4;
  --mj-hover: #f3f3f3;
  --mj-wood: #6b5744;
  --mj-wood-deep: #4e3f31;
  --mj-wood-soft: rgba(107, 87, 68, 0.14);

  display: grid;
  grid-template-columns:
    var(--dh-rail-w) var(--dh-sidebar-w) var(--dh-list-w) minmax(0, 1fr);
  height: 720px;
  min-height: 720px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 13px;
  color: var(--mj-ink);
  background: var(--mj-canvas);
}

/* —— Left rail —— */
.hd-rail{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 8px 0;
  background: var(--mj-rail);
  border-right: 1px solid var(--mj-line);
  color: var(--mj-ink-2);
  align-self: stretch;
}

.hd-rail__brand{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0 10px;
  color: var(--mj-wood-deep);
}

.hd-rail__brand svg{
  display: block;
  width: 32px;
  height: 32px;
}

.hd-rail__stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 3.25rem;
}

.hd-rail__btn{
  appearance: none;
  border: 0;
  margin: 0;
  padding: 8px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--mj-ink-2);
  font: 700 12px/9px inherit;
  cursor: pointer;
}

.hd-rail__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: background 125ms ease;
}

.hd-rail__icon svg{
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hd-rail__icon img{
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hd-rail__btn:hover .hd-rail__icon,
.hd-rail__btn:focus-visible .hd-rail__icon{
  background: rgba(255, 253, 249, 0.55);
}

.hd-rail__btn.is-on{
  color: var(--mj-ink);
}

.hd-rail__btn.is-on .hd-rail__icon{
  background: var(--mj-wood);
  color: #f6f1e8;
}

.hd-rail__label{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.hd-rail__foot{
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 16px 0 8px;
}

.hd-rail__foot-user{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 3.25rem;
}

.hd-rail__avatar-wrap{
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hd-rail__avatar{
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--mj-wood);
  color: #f6f1e8;
  border: 1px solid var(--mj-wood-deep);
  font-size: 13px;
  font-weight: 700;
}

.hd-rail__status{
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mj-rail);
  border: 1px solid var(--mj-line);
  pointer-events: none;
}

.hd-rail__status::after{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4f6b45;
}

/* —— Channel sidebar —— */
.hd-sidebar{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--mj-sidebar);
  border-right: 1px solid var(--mj-line);
  align-self: stretch;
}

.hd-sidebar__head{
  flex-shrink: 0;
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--mj-line);
}

.hd-sidebar__ws-label{
  margin: 0;
  padding: 0 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 14, 12, 0.42);
}

.hd-sidebar__ws-btn{
  width: 100%;
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--mj-ink);
  font: 900 13px/1.2 inherit;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.hd-sidebar__ws-btn:hover{
  background: var(--mj-hover);
}

.hd-sidebar__scroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 8px 20px;
}

.hd-quick{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mj-line);
}

.hd-section{
  margin-bottom: 14px;
}

.hd-section__label{
  padding: 6px 10px 4px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mj-ink-3);
}

.hd-nav-btn{
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mj-ink-2);
  font: 500 13px/1.25 inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hd-nav-btn:hover{
  background: var(--mj-hover);
  color: var(--mj-ink);
}

.hd-nav-btn.is-on{
  background: #ffffff;
  color: var(--mj-ink);
  font-weight: 650;
  box-shadow:
    0 1px 2px rgba(15, 14, 12, 0.06),
    0 3px 10px rgba(15, 14, 12, 0.07);
}

.hd-nav-btn .ico{
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.hd-nav-btn .ico svg,
.hd-nav-btn .ico img{
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.hd-nav-btn .ico svg{
  fill: currentColor;
}

.hd-nav-btn .hi-badge,
.hd-nav-btn .label + .hi-badge{
  margin-left: auto;
}

.hd-nav-btn .label{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-nav-btn .badge{
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--mj-wood-soft);
  color: var(--mj-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.hd-nav-add{
  margin-top: 2px;
  min-height: 26px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mj-ink-3);
}

.hd-nav-add:hover{
  color: var(--mj-ink);
}

/* —— Conversation list —— */
.hd-list{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  background: var(--mj-canvas);
  border-right: 1px solid var(--mj-line-hard);
  overflow: hidden;
}

.hd-list__head{
  flex-shrink: 0;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--mj-line);
  background: var(--mj-canvas);
}

.hd-list__title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hd-list__title{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mj-ink);
}

.hd-list__search{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  max-width: 160px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--mj-line-hard);
  border-radius: 6px;
  background: var(--mj-surface);
  color: var(--mj-ink-3);
}

.hd-list__search svg{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hd-list__search input{
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 12px/1 inherit;
  color: var(--mj-ink);
}

.hd-list__filter{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--mj-line-hard);
  border-radius: 6px;
  color: var(--mj-ink-3);
}

.hd-list__filter svg{
  width: 14px;
  height: 14px;
}

.hd-list__items{
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.hd-conv{
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 2px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hd-conv:hover{
  background: var(--mj-hover);
}

.hd-conv.is-active{
  background: var(--mj-surface);
  box-shadow: inset 3px 0 0 var(--mj-wood);
}

.hd-conv.unread .hd-conv__name,
.hd-conv.unread .hd-conv__preview{
  color: var(--mj-ink);
  font-weight: 650;
}

.hd-conv__avatar{
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--mj-wood);
  background: var(--mj-wood-soft);
}

.hd-conv__body{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hd-conv__row1,
.hd-conv__row2{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.hd-conv__name{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--mj-ink-2);
}

.hd-conv__time{
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--mj-ink-3);
}

.hd-conv__preview{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 18px;
  color: var(--mj-ink-3);
}

.hd-conv__channel{
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 16px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--mj-line);
  color: var(--mj-ink-3);
}

.hd-conv__pill{
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--mj-wood-soft);
  color: var(--mj-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* —— Thread —— */
.hd-thread{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  background: var(--mj-canvas);
}

.hd-thread__head{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mj-line);
  background: var(--mj-canvas);
}

.hd-thread__ch{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--mj-wood-soft);
  color: var(--mj-wood-deep);
}

.hd-thread__ch svg{ width: 13px; height: 13px; fill: currentColor; }

.hd-thread__title{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mj-ink);
}

.hd-thread__sub{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hd-pill{
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--mj-ink-3);
  background: var(--mj-sunken);
  border: 1px solid var(--mj-line);
}

.hd-pill--ai{
  color: var(--mj-wood-deep);
  background: var(--mj-wood-soft);
  border-color: rgba(107, 87, 68, 0.18);
}

.hd-thread__messages{
  flex: 1;
  overflow: auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  background: var(--mj-canvas);
}

.hd-thread__day{
  margin: 0 0 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mj-ink-3);
}

.hd-post{
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  max-width: min(32rem, calc(100% - 32px));
}

.hd-post.is-them{ align-self: flex-start; }

.hd-post.is-me{
  align-self: flex-end;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.hd-post__face{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mj-sunken);
  border: 1px solid var(--mj-line-hard);
  color: var(--mj-ink-2);
  font-size: 11px;
  font-weight: 700;
  user-select: none;
}

.hd-post__face--me{
  background: var(--mj-wood-soft);
  border-color: rgba(107, 87, 68, 0.3);
  color: var(--mj-wood-deep);
}

.hd-post__main{ min-width: 0; }

.hd-post__bubble{
  width: fit-content;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  word-break: break-word;
}

.hd-post.is-them .hd-post__bubble{
  background: #f8f4ee;
  color: var(--mj-ink);
  border: 1px solid var(--mj-line-hard);
  border-bottom-left-radius: 2px;
}

.hd-post.is-me .hd-post__bubble{
  background: #f2ebe2;
  color: var(--mj-ink);
  border: 1px solid rgba(107, 87, 68, 0.28);
  border-bottom-right-radius: 2px;
}

.hd-post__meta{
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
}

.hd-post.is-them .hd-post__meta{ justify-content: flex-start; }
.hd-post.is-me .hd-post__meta{ justify-content: flex-end; }

.hd-post__who{
  color: var(--mj-ink-2);
  font-weight: 600;
}

.hd-post__sep,
.hd-post__time{
  color: var(--mj-ink-3);
}

.hd-thread__composer{
  flex-shrink: 0;
  padding: 0 16px 16px;
  background: var(--mj-canvas);
}

.hd-reply{
  border: 1px solid var(--mj-line-hard);
  border-radius: 10px;
  background: var(--mj-surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hd-reply:focus-within{
  border-color: var(--mj-wood);
  box-shadow: 0 0 0 3px var(--mj-wood-soft);
}

.hd-reply__editor{
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  padding: 12px 16px 8px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font: 500 13px/1.55 inherit;
  color: var(--mj-ink);
}

.hd-reply__editor::placeholder{
  color: var(--mj-ink-3);
}

.hd-reply__foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px 10px;
}

.hd-reply__tools{
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hd-reply__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--mj-ink-3);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hd-reply__icon:hover{
  color: var(--mj-wood-deep);
  background: var(--mj-wood-soft);
  border-color: var(--mj-line-hard);
}

.hd-reply__icon svg{
  display: block;
  width: 16px;
  height: 16px;
}

.hd-send{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: var(--mj-wood);
  color: #f6f1e8;
  cursor: pointer;
  transition: background 0.14s ease;
}

.hd-send:hover{
  background: var(--mj-wood-deep);
}

.hd-send svg{
  width: 16px;
  height: 16px;
}

.home-demo__hint{
  margin: 14px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(37, 36, 33, 0.45);
}

/* —— Responsive —— */
@media (max-width: 1240px){
  .home-demo{ width: min(1180px, 100%); }
}

@media (max-width: 1100px){
  .home-demo__app{
    grid-template-columns: var(--dh-rail-w) var(--dh-list-w) minmax(0, 1fr);
  }

  .hd-sidebar{
    display: none;
  }
}

@media (max-width: 900px){
  .home-demo__app{
    grid-template-columns: var(--dh-list-w) minmax(0, 1fr);
  }

  .hd-rail{
    display: none;
  }
}

@media (max-width: 760px){
  .home-demo{
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-demo__app{
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 480px;
  }

  .hd-list{
    display: none;
  }

  .hd-thread{
    min-height: 420px;
  }
}