#chapiz-demo {
  color-scheme: light dark;
  --bg: light-dark(#fff, #1e2532);
  --ink: light-dark(#182338, #eff2fb);
  --sub: light-dark(#626c80, #b8c3d6);
  --line: light-dark(#e5e8ef, #384153);
  --soft: light-dark(#f4f6fb, #27303e);
  --tint: light-dark(#fff0e5, #493121);
  --accent: light-dark(#a3450b, #ffad73);
  --owner: light-dark(#ffe2cd, #56341f);
  --nav: #1e263c;
  --cta: light-dark(#253350, #e7ebfc);
  --oncta: light-dark(#fff, #202941);
  --orange: #ff8a48;
  display: block;
  position: relative;
  isolation: isolate;
  direction: rtl;
  text-align: right;
  font:
    15px/1.45 Arial,
    "Arial Hebrew",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  container: chapiz / inline-size;
}
#chapiz-demo * {
  box-sizing: border-box;
  min-width: 0;
}
#chapiz-demo [hidden] {
  display: none !important;
}
#chapiz-demo :is(p, h2, h3, form) {
  margin: 0;
  color: inherit;
}
#chapiz-demo h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 700;
}
#chapiz-demo h3 {
  font-size: 17px;
  font-weight: 700;
}
#chapiz-demo small {
  font-size: 13px;
  color: var(--sub);
  display: block;
  font-weight: 400;
}
#chapiz-demo b {
  font-weight: 700;
}
#chapiz-demo :is(button, input, textarea, select) {
  font: inherit;
  color: inherit;
  box-shadow: none;
  margin: 0;
}
#chapiz-demo button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  min-height: 39px;
  padding: 7px 11px;
  border: 0;
  border-radius: 11px;
  white-space: normal;
  line-height: 1.25;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.15s;
}
#chapiz-demo button:hover {
  background: var(--soft);
}
#chapiz-demo button:active {
  opacity: 0.78;
}
#chapiz-demo svg {
  flex: none;
  width: 18px;
  height: 18px;
}
#chapiz-demo .screen {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 64px;
  height: 705px;
}
#chapiz-demo
  :is(
    .mast,
    .identity,
    .row,
    .logo,
    .line,
    .person,
    .pills,
    .th,
    .member,
    .rate,
    .look,
    .item,
    .secure,
    .cluster,
    .msg,
    .prop,
    .role
  ) {
  display: flex;
  align-items: center;
  gap: 9px;
}
#chapiz-demo :is(.mast, .row, .line) {
  justify-content: space-between;
}
#chapiz-demo .mast {
  background: var(--nav);
  color: #fff;
  padding: 0 17px;
}
#chapiz-demo .logo {
  gap: 6px;
  font:
    bold 23px/1.1 "Trebuchet MS",
    Arial,
    sans-serif;
  letter-spacing: -1px;
}
#chapiz-demo .logo em {
  color: #ffab76;
  font: 600 14px Arial;
  letter-spacing: 0;
  align-self: end;
  padding-bottom: 1px;
}
#chapiz-demo .logo svg {
  stroke: #ff9350;
  width: 27px;
  height: 27px;
  transform: rotate(-14deg);
}
#chapiz-demo .identity {
  gap: 5px;
}
#chapiz-demo .demo {
  color: #ffd5b8;
  background: #3d3640;
  font-size: 13px;
  border-radius: 20px;
  min-height: 29px;
  padding: 5px 10px;
}
#chapiz-demo .demo svg {
  width: 15px;
}
#chapiz-demo .sym {
  padding: 6px;
  min-width: 36px;
}
#chapiz-demo .mast button:hover {
  background: #494f65;
}
#chapiz-demo .user {
  color: #66371a;
  background: #ffccaa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
}
#chapiz-demo nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  gap: 3px;
}
#chapiz-demo nav button {
  flex-direction: column;
  gap: 3px;
  padding: 3px;
  font-size: 13px;
  color: var(--sub);
  position: relative;
}
#chapiz-demo nav button svg {
  width: 21px;
  height: 21px;
}
#chapiz-demo nav .chosen,
#chapiz-demo .soft,
#chapiz-demo .pills .on {
  color: var(--accent);
  background: var(--tint);
}
#chapiz-demo sup {
  font: 700 12px/18px Arial;
  color: #2b2230;
  background: var(--orange);
  border-radius: 20px;
  min-width: 18px;
  height: 18px;
  text-align: center;
  display: inline-block;
  flex: none;
}
#chapiz-demo nav sup {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
}
#chapiz-demo .stage {
  display: flex;
  min-height: 0;
}
#chapiz-demo aside {
  width: 35%;
  max-width: 326px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px 0;
  border-left: 1px solid var(--line);
}
#chapiz-demo aside > .row {
  padding-inline: 4px;
}
#chapiz-demo .look {
  background: var(--soft);
  border-radius: 11px;
  padding: 0 10px;
  color: var(--sub);
}
#chapiz-demo :is(.look, #say) input {
  width: 100%;
  border: 0;
  background: none;
  min-height: 40px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 16px;
}
#chapiz-demo .pills {
  gap: 5px;
  flex-wrap: wrap;
}
#chapiz-demo .pills button {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--sub);
  border-radius: 20px;
}
#chapiz-demo .pills .on {
  background: var(--cta);
  color: var(--oncta);
}
#chapiz-demo :is(.items, .history, .pane, .sheet) {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior: contain;
}
#chapiz-demo .items {
  flex: 1;
  padding-bottom: 6px;
}
#chapiz-demo .item {
  width: 100%;
  text-align: right;
  padding: 11px 7px;
  gap: 11px;
  margin-bottom: 4px;
}
#chapiz-demo .item.sel {
  background: var(--tint);
}
#chapiz-demo .itemtxt {
  flex: 1;
  display: grid;
  gap: 4px;
}
#chapiz-demo .itemtxt b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}
#chapiz-demo .line small {
  flex: none;
  font-size: 12px;
}
#chapiz-demo .line svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
#chapiz-demo :is(.snip, .sub) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--sub);
  font-weight: 400;
}
#chapiz-demo .sub {
  color: var(--ink);
}
#chapiz-demo .av {
  position: relative;
  width: 47px;
  height: 47px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
#chapiz-demo .face {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  height: 100%;
  width: 100%;
  background: #ddd8dc;
}
#chapiz-demo .face img {
  position: absolute;
  width: 137%;
  max-width: none;
  height: auto;
  top: -17%;
  left: -18%;
  display: block;
}
#chapiz-demo .role {
  position: absolute;
  bottom: -2px;
  left: -3px;
  border-radius: 50%;
  height: 21px;
  width: 21px;
  border: 2px solid var(--bg);
  justify-content: center;
  background: #395a9a;
  color: #fff;
}
#chapiz-demo .role svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.3;
}
#chapiz-demo :is(.c0, .c1, .c6) {
  background: #b14b1b;
}
#chapiz-demo :is(.c4, .c9, .c3) {
  background: #137968;
}
#chapiz-demo :is(.c11, .c8, .c2) {
  background: #7454ad;
}
#chapiz-demo .tiny {
  height: 32px;
  width: 32px;
}
#chapiz-demo .cluster {
  gap: 0;
  flex: none;
}
#chapiz-demo .cluster .av {
  border: 2px solid var(--bg);
  border-radius: 50%;
  margin-left: -12px;
}
#chapiz-demo .cluster .av:last-child {
  margin: 0;
}
#chapiz-demo .thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--soft);
}
#chapiz-demo .th {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 13px;
}
#chapiz-demo .title {
  flex: 1;
  overflow-wrap: anywhere;
}
#chapiz-demo .title b {
  font-size: 17px;
}
#chapiz-demo .back {
  display: none;
}
#chapiz-demo .history {
  flex: 1;
  padding: 12px 16px 16px;
  background: radial-gradient(
      circle at 2px 2px,
      light-dark(#e4e8f3, #323b4d) 0.8px,
      transparent 0.9px
    )
    0 0/17px 17px;
}
#chapiz-demo .date,
#chapiz-demo .fine {
  text-align: center;
  font-size: 12px;
  color: var(--sub);
}
#chapiz-demo .msg {
  margin-top: 12px;
  align-items: flex-start;
  gap: 7px;
}
#chapiz-demo .pack {
  max-width: 88%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}
#chapiz-demo .mine {
  justify-content: flex-end;
}
#chapiz-demo .who {
  font-size: 14px;
}
#chapiz-demo .who small {
  display: inline;
}
#chapiz-demo :is(.say, .graph, .prop) {
  padding: 10px 13px;
  border-radius: 16px 4px 16px 16px;
  background: var(--bg);
  overflow-wrap: anywhere;
  box-shadow: 0 1px 3px #2027420c;
  white-space: pre-wrap;
}
#chapiz-demo .say small {
  text-align: left;
  font-size: 12px;
}
#chapiz-demo .mine .say {
  border-radius: 4px 16px 16px 16px;
  background: var(--owner);
}
#chapiz-demo .big .say {
  font-size: 18px;
}
#chapiz-demo .graph {
  border-radius: 15px;
  align-self: stretch;
  min-width: 0;
  max-width: 420px;
}
#chapiz-demo .metrics {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
#chapiz-demo .metrics > div {
  display: grid;
  grid-template-columns: 95px 1fr 29px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
#chapiz-demo .metrics b {
  text-align: left;
  font-variant-numeric: tabular-nums;
}
#chapiz-demo .track,
#chapiz-demo .track span {
  display: block;
  background: var(--soft);
  height: 8px;
  border-radius: 6px;
}
#chapiz-demo .rate {
  background: var(--soft);
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 9px;
  font-size: 13px;
  gap: 6px;
}
#chapiz-demo .rate strong {
  font-size: 18px;
  color: var(--accent);
}
#chapiz-demo .action,
#chapiz-demo .action:hover {
  background: var(--cta);
  color: var(--oncta);
}
#chapiz-demo .action:hover {
  opacity: 0.9;
}
#chapiz-demo .prop {
  width: 100%;
  justify-content: flex-start;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--accent);
  gap: 10px;
}
#chapiz-demo .foot {
  padding: 10px 13px;
  display: grid;
  gap: 8px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
#chapiz-demo .pill,
#chapiz-demo .border {
  border: 1px solid var(--line);
  color: var(--ink);
}
#chapiz-demo .pill svg {
  color: var(--accent);
  width: 15px;
}
#chapiz-demo #say {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 15px;
  background: var(--soft);
  padding: 4px 12px 4px 5px;
}
#chapiz-demo .send {
  width: 40px;
  min-width: 40px;
  background: #ff9252;
  color: #2b2132;
}
#chapiz-demo .send svg {
  transform: scaleX(-1);
}
#chapiz-demo .pane {
  background: var(--soft);
  width: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
#chapiz-demo .pane > * {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  flex: none;
}
#chapiz-demo .box,
#chapiz-demo .sheet {
  display: grid;
  gap: 12px;
  padding: 17px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
#chapiz-demo .prefs label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 43px;
}
#chapiz-demo .prefs button,
#chapiz-demo .member {
  justify-content: flex-start;
  padding-inline: 1px;
}
#chapiz-demo .member {
  text-align: right;
  width: 100%;
  min-height: 55px;
  gap: 12px;
}
#chapiz-demo .red {
  color: light-dark(#b2292a, #ff9999);
}
#chapiz-demo .layer {
  position: absolute;
  inset: 0;
  background: #12192d80;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 12px;
}
#chapiz-demo .sheet {
  width: min(100%, 455px);
  max-height: 660px;
  display: block;
  box-shadow: 0 16px 54px #141a3220;
}
#chapiz-demo .sheet > * + *,
#chapiz-demo .sheet form > * + * {
  margin-top: 13px;
}
#chapiz-demo .sheet label {
  display: block;
  font-weight: 600;
}
#chapiz-demo :is(.sheet input:not([type="checkbox"]), textarea, select) {
  display: block;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  width: 100%;
  font-size: 16px;
  margin-top: 6px;
  resize: vertical;
}
#chapiz-demo select {
  width: auto;
}
#chapiz-demo .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#chapiz-demo .picks label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  background: var(--soft);
  border-radius: 10px;
  padding: 5px;
}
#chapiz-demo input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex: none;
}
#chapiz-demo .wide {
  width: 100%;
}
#chapiz-demo .locked {
  display: grid;
  place-items: center;
  grid-template-rows: 1fr;
  background: var(--soft);
}
#chapiz-demo .secure {
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  text-align: center;
}
#chapiz-demo .secure > svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
}
@container chapiz (max-width:640px) {
  #chapiz-demo aside {
    width: 100%;
    max-width: none;
    border: 0;
  }
  #chapiz-demo .thread,
  #chapiz-demo .detail aside {
    display: none;
  }
  #chapiz-demo .detail .thread,
  #chapiz-demo .back {
    display: flex;
  }
  #chapiz-demo .item.sel {
    background: transparent;
  }
  #chapiz-demo .item {
    padding: 10px 6px;
  }
  #chapiz-demo .th {
    padding: 9px 8px;
    gap: 6px;
  }
  #chapiz-demo .history {
    padding-inline: 10px;
  }
  #chapiz-demo .foot {
    padding-inline: 9px;
  }
  #chapiz-demo .th .av:not(.tiny) {
    height: 39px;
    width: 39px;
  }
  #chapiz-demo .th small {
    font-size: 12px;
  }
  #chapiz-demo .th .soft {
    font-size: 13px;
    padding: 6px 8px;
  }
  #chapiz-demo .mast {
    padding: 0 11px;
  }
  #chapiz-demo .pills button {
    min-height: 37px;
    font-size: 13px;
    padding: 6px 8px;
  }
  #chapiz-demo .pack {
    max-width: calc(100% - 38px);
  }
  #chapiz-demo .graph .row {
    flex-wrap: wrap;
  }
  #chapiz-demo .sheet {
    padding: 13px;
  }
  #chapiz-demo .layer {
    padding: 7px;
  }
  #chapiz-demo .picks .tiny {
    width: 27px;
    height: 27px;
  }
  #chapiz-demo .sheet .grid button {
    padding-inline: 4px;
  }
}
@container chapiz (max-width:360px) {
  #chapiz-demo .th .soft svg,
  #chapiz-demo .graph .cluster,
  #chapiz-demo .item .cluster .av:last-child {
    display: none;
  }
  #chapiz-demo .title b {
    font-size: 15px;
  }
  #chapiz-demo .th .sym {
    min-width: 29px;
    padding: 3px;
  }
  #chapiz-demo .item .cluster {
    margin-left: 10px;
  }
  #chapiz-demo .mast .user {
    display: none;
  }
  #chapiz-demo .graph .action {
    width: 100%;
  }
  #chapiz-demo .pills {
    gap: 3px;
  }
  #chapiz-demo .pills button {
    font-size: 12px;
  }
  #chapiz-demo .picks label {
    gap: 4px;
    padding: 4px;
  }
  #chapiz-demo .graph .row b {
    font-size: 14px;
  }
  #chapiz-demo .th .cluster {
    display: none;
  }
}

#chapiz-demo .screen,
#chapiz-demo .layer {
  font-family: Arial, "Arial Hebrew", sans-serif;
}
#chapiz-demo .sym i[data-lucide="x"]::before {
  content: "×";
}
#chapiz-demo .send i[data-lucide="send"]::before {
  content: "שלח";
}
#chapiz-demo .sym i[data-lucide="users"]::before {
  content: "צוות";
}
#chapiz-demo .sym i[data-lucide="lock-keyhole"]::before {
  content: "נעילה";
}
#chapiz-demo .sym i[data-lucide="chevron-right"]::before {
  content: "חזרה";
}
#chapiz-demo .itemtxt .line {
  display: flex;
}
#chapiz-demo .itemtxt .line b {
  overflow-wrap: anywhere;
}
#chapiz-demo .soft {
  flex-shrink: 0;
}
#chapiz-demo .title small {
  overflow-wrap: anywhere;
}
#chapiz-demo .history {
  overflow-anchor: none;
}
#chapiz-demo .thread .th {
  flex: none;
}
#chapiz-demo .pills,
#chapiz-demo .foot,
#chapiz-demo nav {
  flex-shrink: 0;
}
#chapiz-demo .sheet {
  overscroll-behavior: auto;
}
#chapiz-demo .sheet form textarea {
  max-height: 180px;
}
#chapiz-demo .history .pack:has(.graph) {
  width: min(88%, 440px);
}
#chapiz-demo .items .item .itemtxt {
  grid-template-columns: minmax(0, 1fr);
}
#chapiz-demo input::placeholder {
  color: var(--sub);
  opacity: 1;
}
#chapiz-demo .look input,
#chapiz-demo #say input {
  min-width: 0;
}
@container chapiz (max-width:390px) {
  #chapiz-demo .th .soft svg {
    display: none;
  }
  #chapiz-demo .pills button {
    font-size: 13px;
    min-height: 40px;
  }
  #chapiz-demo .th .cluster {
    display: none;
  }
}

body {
  margin: 0;
  background: #1e263c;
}
#chapiz-demo {
  max-width: 1280px;
  margin: auto;
  border: none;
  border-radius: 0;
}
#chapiz-demo .screen {
  height: 100vh;
  height: 100dvh;
  grid-template-rows: 58px minmax(0, 1fr) calc(
      64px + env(safe-area-inset-bottom)
    );
}
#chapiz-demo nav {
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
}
#chapiz-demo button {
  cursor: pointer;
}
#chapiz-demo .action,
#chapiz-demo .action:hover {
  color: var(--oncta);
  background: var(--cta);
}
#chapiz-demo button:disabled {
  opacity: 0.45;
  cursor: wait;
}
#chapiz-demo .screen.locked {
  display: grid;
  grid-template-rows: 1fr;
  overflow: auto;
  padding: 16px;
}
#chapiz-demo .secure {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 24px;
  max-width: 410px;
  width: 100%;
  padding: 32px 22px;
  box-shadow: 0 15px 60px #1420400c;
}
#chapiz-demo .secure .cluster .av {
  width: 70px;
  height: 70px;
}
#chapiz-demo .secure input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 16px;
  text-align: center;
}
#chapiz-demo dialog.sheet {
  color: var(--ink);
  max-height: 85dvh;
  max-width: 90vw;
}
#chapiz-demo dialog:not([open]) {
  display: none;
}
#chapiz-demo dialog::backdrop {
  background: #14192d90;
}
#chapiz-demo #notice {
  position: absolute;
  bottom: 85px;
  background: var(--cta);
  color: var(--oncta);
  padding: 14px;
  border-radius: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  z-index: 8;
}
#chapiz-demo .welcome {
  width: min(95%, 460px);
  margin: clamp(14px, 10vh, 95px) auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
#chapiz-demo .welcome .av {
  width: 84px;
  height: 84px;
}
#chapiz-demo .welcome .cluster .av {
  width: 65px;
  height: 65px;
}
#chapiz-demo .box p,
#chapiz-demo dialog p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#chapiz-demo .tag {
  color: var(--accent);
  font-size: 13px;
  background: var(--tint);
  padding: 4px 8px;
  border-radius: 10px;
}
#chapiz-demo .items .item {
  justify-content: flex-start;
}
#chapiz-demo .items .item .itemtxt {
  overflow: hidden;
}
#chapiz-demo .foot .pills {
  justify-content: space-between;
}
#chapiz-demo .th .title small {
  white-space: normal;
}
#chapiz-demo details p {
  margin: 8px 0;
  padding: 8px;
  border-inline-start: 3px solid var(--tint);
}
#chapiz-demo summary {
  cursor: pointer;
  color: var(--sub);
}
#chapiz-demo .face img {
  pointer-events: none;
}
#chapiz-demo .history .msg:last-child {
  padding-bottom: 10px;
}
#chapiz-demo textarea {
  min-height: 130px;
}
#chapiz-demo .foot .pill {
  font-size: 13px;
}
#chapiz-demo button:focus-visible {
  outline: 3px solid #579bf5;
  outline-offset: -3px;
}
#chapiz-demo .confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  cursor: pointer;
}
#chapiz-demo .confirm input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: none;
}
#chapiz-demo .sheet a {
  color: var(--accent);
}
#chapiz-demo article .soft {
  margin-block: 8px;
}
#chapiz-demo .pane > .pills {
  padding: 12px 0;
}
#chapiz-demo .action:disabled {
  opacity: 0.65;
  cursor: wait;
}
#chapiz-demo .deviceRef {
  font: bold 20px monospace;
  direction: ltr;
  padding: 10px;
  background: var(--soft);
  border-radius: 14px;
  display: block;
}
