html.pc-html,
body.pc-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.pc-body {
  background: #060606;
  color: #e3dbcc;
  font-family: clother, "clother", sans-serif;
}

.pc-app {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1.25rem 0 1rem;
}

/* Centered column gutters — scrollbar stays on the viewport edge */
.pc-inset {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.pc-top {
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #e3dbcc;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pc-brand:hover {
  color: #fff;
}

.pc-brand__icon {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 14px;
}

.pc-top__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(227, 219, 204, 0.52);
}

/* Full-bleed scroller — scrollbar at extreme right of the window */
.pc-chat {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pc-chat__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 0.35rem;
  min-height: 100%;
  box-sizing: border-box;
}

.pc-messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.1rem 0 0.25rem;
}

.pc-bubble {
  max-width: 92%;
  padding: 0.5rem 0.7rem;
  line-height: 1.4;
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pc-bubble--assistant {
  align-self: flex-start;
  background: #202020;
  border: 1px solid rgba(227, 219, 204, 0.12);
  border-radius: 14px 14px 14px 3px;
}

.pc-bubble--user {
  align-self: flex-end;
  background: rgba(242, 19, 60, 0.16);
  border: 1px solid rgba(242, 19, 60, 0.28);
  border-radius: 14px 14px 3px 14px;
}

.pc-bubble strong {
  font-weight: 600;
}

.pc-bubble--thinking {
  opacity: 0.75;
  font-style: italic;
}

.pc-choices {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.pc-choice {
  appearance: none;
  border: 1px solid rgba(227, 219, 204, 0.18);
  background: #141414;
  color: #e3dbcc;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.pc-choice:hover {
  border-color: rgba(242, 19, 60, 0.45);
  background: rgba(242, 19, 60, 0.12);
}

.pc-dock {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.pc-composer {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  border: 1px solid rgba(227, 219, 204, 0.12);
  border-radius: 14px;
  background: #141414;
}

.pc-composer__wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.pc-input {
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: #e3dbcc;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 1.4em;
  max-height: 140px;
  padding: 0;
  margin: 0;
}

.pc-input::placeholder {
  color: rgba(227, 219, 204, 0.4);
}

.pc-send {
  flex-shrink: 0;
  align-self: center;
}

.pc-legal {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: rgba(227, 219, 204, 0.45);
  text-align: center;
}

.pc-legal a {
  color: rgba(227, 219, 204, 0.7);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .pc-composer {
    flex-direction: row;
    align-items: center;
  }

  .pc-send {
    width: auto;
    justify-content: center;
  }
}
