.kiln {
  font-family: Outfit, "IBM Plex Sans", system-ui, sans-serif;
}

.app.kiln {
  display: flex;
  flex-direction: column;
}

.kiln .screen-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.kiln .screen-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.kiln-pad {
  padding: 8px 20px 28px;
}

.kiln-kicker {
  margin: 16px 20px 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.kiln-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.kiln-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.kiln-attr {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

.kiln-head-wrap {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
  overflow: hidden;
  max-height: calc(env(safe-area-inset-top, 0px) + 72px);
  transition: max-height 200ms ease, padding 200ms ease;
}

.kiln-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px 8px;
  transition: opacity 160ms ease, transform 200ms ease;
}

.app.is-head-away .kiln-head-wrap {
  max-height: 6px;
  padding-top: 0;
}

.app.is-head-away .kiln-head {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.kiln-using {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px 2px 4px 4px;
  min-height: 44px;
  max-width: 64%;
  cursor: pointer;
  text-align: left;
  border-radius: 22px;
}

.kiln-using span {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kiln-using .icon {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex-shrink: 0;
}

.kiln-using.is-open .icon {
  transform: rotate(180deg);
}

.kiln-using.is-fresh {
  animation: kiln-swap 220ms ease;
}

@keyframes kiln-swap {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.kiln-avatar,
.kiln-using img,
.kiln-tray-item img,
.kiln-result img.kiln-avatar,
.kiln-note .kiln-avatar,
.kiln-reply .kiln-avatar,
.kiln-profile-ava,
.kiln-composer-who img {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: 50% 50%;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
}

.kiln-profile-ava {
  width: 76px;
  height: 76px;
}

.kiln-ava-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.kiln-ava-btn img {
  width: 100%;
  height: 100%;
}

.kiln-tray-scrim {
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 0;
  background: rgba(18, 19, 20, 0.18);
  animation: kiln-fade 200ms ease;
}

.kiln-tray {
  position: absolute;
  right: 18px;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  width: min(280px, calc(100% - 36px));
  background: var(--paper-2, #f4f2ec);
  border-radius: 16px;
  padding: 8px;
  z-index: 21;
  animation: kiln-tray 220ms ease;
  box-shadow: 0 12px 32px rgba(20, 18, 16, 0.12);
}

.kiln-tray.is-ribbon {
  left: 18px;
  right: 18px;
  width: auto;
}

@keyframes kiln-tray {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kiln-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.kiln-tray-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
}

.kiln-tray-item.is-on {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.kiln-tray-item .copy b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.kiln-tray-item .copy small {
  color: var(--muted);
  font-size: 12px;
}

.kiln-tray-item .mark {
  margin-left: auto;
  color: var(--accent);
}

.kiln-tray-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
}

.kiln-ribbon {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kiln-post {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line);
}

.kiln-post-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px;
}

.kiln-post-head .who {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.kiln-post-head .name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.kiln-post-head b {
  font-size: 15px;
  font-weight: 500;
}

.kiln-post-head .handle,
.kiln-post-head time {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.kiln-media {
  margin: 12px 0 0;
}

.kiln-media img,
.kiln-media button {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.kiln-media img {
  height: 280px;
  object-fit: cover;
  object-position: 50% 30%;
}

.kiln-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.kiln-strip::-webkit-scrollbar {
  display: none;
}

.kiln-strip button {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.kiln-caption {
  margin: 10px 16px 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.kiln-textpost .kiln-caption {
  font-size: 17px;
}

.kiln-thread-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 16px 0 62px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.kiln-thread-preview span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.kiln-thread-preview b {
  color: var(--ink);
  font-weight: 500;
}

.kiln-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 2px 10px 0;
}

.kiln-act {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.kiln-act.is-on {
  color: var(--accent);
}

.kiln-act.is-on .icon {
  fill: currentColor;
}

.kiln-count {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}

.kiln-back {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  padding: 0 4px 0 0;
}

.kiln-carousel-wrap {
  position: relative;
  margin: 18px -20px 0;
}

.kiln-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 20px 10px;
  gap: 12px;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.kiln-carousel::-webkit-scrollbar {
  display: none;
}

.kiln-slide {
  flex: 0 0 calc(100% - 28px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: hidden;
  cursor: pointer;
}

.kiln-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 50% 18%;
  pointer-events: none;
}

.kiln-slide-copy {
  padding: 14px 16px 16px;
}

.kiln-slide-copy h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.kiln-selected-note {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.kiln-selected-note.is-quiet {
  font-weight: 400;
  opacity: 0.55;
}

.kiln-car-nav {
  position: absolute;
  top: 118px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.kiln-car-nav.prev {
  left: 8px;
}

.kiln-car-nav.next {
  right: 8px;
}

.kiln-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 12px;
}

.kiln-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #c8c4bc;
  cursor: pointer;
}

.kiln-dots button.is-on {
  width: 16px;
  background: var(--ink);
}

.kiln-search,
.kiln-activity,
.kiln-composer {
  padding: 8px 16px 28px;
}

.kiln-activity .kiln-kicker,
.kiln-search .kiln-kicker {
  margin-left: 0;
  margin-right: 0;
}

.kiln-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.kiln-result-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.kiln-result-main span {
  min-width: 0;
}

.kiln-result-main b {
  display: block;
  font-weight: 500;
  font-size: 15px;
}

.kiln-result-main .handle {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.kiln-follow {
  flex-shrink: 0;
  min-height: 36px;
  min-width: 88px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.kiln-follow.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.kiln-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 0;
  min-height: 72px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.kiln-note.is-unread::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 28px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.kiln-note-copy {
  flex: 1;
  min-width: 0;
}

.kiln-note-copy b {
  display: block;
  font-weight: 500;
}

.kiln-note-copy em {
  display: block;
  font-style: normal;
  font-size: 13px;
  margin-top: 1px;
}

.kiln-note-copy .preview {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.kiln-note-copy .meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.kiln-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.kiln-cover {
  height: 132px;
  overflow: hidden;
  background: #c9c2b6;
}

.kiln-cover img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: 50% 62%;
}

.kiln-profile-body {
  padding: 0 16px 8px;
}

.kiln-profile-ava {
  margin-top: -28px;
  box-shadow: 0 0 0 3px var(--paper);
}

.kiln-profile h1 {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 500;
}

.kiln-stats {
  display: flex;
  gap: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.kiln-stats b {
  color: var(--ink);
  font-weight: 500;
}

.kiln-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 16px;
}

.kiln-grid button {
  border: 0;
  padding: 0;
  background: var(--paper-2, #eeeae4);
  cursor: pointer;
  min-height: 132px;
}

.kiln-grid img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.kiln-grid .text-cell {
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
}

.kiln-quiet {
  margin: 16px;
  color: var(--muted);
  font-size: 14px;
}

.kiln-comment {
  display: flex;
  gap: 8px;
  padding: 8px 16px 20px;
  align-items: flex-end;
}

.kiln-comment .field {
  flex: 1;
}

.kiln-composer-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.kiln-composer textarea {
  width: 100%;
  min-height: 140px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  resize: vertical;
  font-size: 17px;
  line-height: 1.45;
}

.kiln-composer textarea:focus {
  outline: none;
}

.kiln-preview {
  margin: 8px 0 12px;
  overflow: hidden;
}

.kiln-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kiln-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 200px;
  margin: 8px 0 12px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.kiln-photo-add .icon {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.kiln-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.kiln-replies {
  padding: 4px 16px 8px;
}

.kiln-reply {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.kiln-reply p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.kiln-tabs .tab.is-create .tab-ic {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: var(--accent);
  color: #faf6f0;
}

.kiln-manage-list {
  margin-top: 16px;
}

.kiln-media-view .hero {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #0b0c0b;
}

.kiln-feed {
  padding-bottom: 8px;
  transform: translateY(var(--pull, 0px));
  will-change: transform;
}

.kiln-refresh {
  height: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.kiln-refresh-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(calc(var(--pull, 0px) - 84px));
  opacity: clamp(0, calc(var(--p, 0) * 1.35), 1);
}

.app.is-snap .kiln-feed,
.app.is-snap .kiln-refresh-inner,
.app.is-refreshing .kiln-feed,
.app.is-refreshing .kiln-refresh-inner,
.app.is-refresh-fade .kiln-feed,
.app.is-refresh-fade .kiln-refresh-inner {
  transition: transform 0.34s ease, opacity 0.28s ease;
}

.kiln-refresh-a {
  position: relative;
  width: 100%;
  height: 84px;
  overflow: visible;
}

.kiln-refresh-a svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: block;
  margin: 18px auto 0;
  overflow: visible;
}

.kiln-refresh-a .sparkle-field {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.kiln-refresh-a .sparkle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--s, 12px);
  height: var(--s, 12px);
  margin: calc(var(--s, 12px) / -2) 0 0 calc(var(--s, 12px) / -2);
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.kiln-refresh-a .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  transform-origin: 24px 24px;
  stroke-dasharray: 63;
  stroke-dashoffset: calc(63 - (63 * var(--p, 0)));
}

.kiln-refresh-b {
  position: relative;
  width: 34px;
  height: 34px;
}

.kiln-refresh-b .frame {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--ink);
  border-style: solid;
  opacity: calc(0.2 + var(--p, 0) * 0.8);
}

.kiln-refresh-b .tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.kiln-refresh-b .tr {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.kiln-refresh-b .bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.kiln-refresh-b .br {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.kiln-refresh-b .rule {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--p, 0) * 16px);
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.kiln-post:not(:has(.kiln-actions)) {
  padding-bottom: 20px;
}

.kiln-preview-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-top: 28px;
}

.kiln-preview-hero img {
  width: 128px;
  height: 176px;
  object-fit: cover;
  object-position: 50% 18%;
}

.kiln-preview-hero h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.kiln-preview-hero .handle {
  margin: 4px 0 0;
  color: var(--muted);
}

.kiln-preview-hero .kiln-kicker {
  margin: 0 0 8px;
}

.kiln-strip-select {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.kiln-strip-select::-webkit-scrollbar {
  display: none;
}

.kiln-mini {
  flex: 0 0 auto;
  width: 88px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.kiln-mini img {
  width: 88px;
  height: 112px;
  object-fit: cover;
  object-position: 50% 18%;
}

.kiln-mini span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.kiln-people.is-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.kiln-people.is-visual .kiln-result {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
  padding: 12px 4px 16px;
}

.kiln-people.is-visual .kiln-result-main {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kiln-people.is-visual .kiln-avatar {
  width: 72px;
  height: 72px;
}

.kiln-people.is-visual .kiln-follow {
  align-self: center;
}

.kiln-profile.is-gallery .kiln-profile-ava {
  margin-top: 18px;
  box-shadow: none;
}

.kiln-profile.is-gallery .kiln-grid {
  gap: 8px;
  padding: 8px 16px 28px;
}

.kiln-profile.is-gallery .kiln-grid img,
.kiln-profile.is-gallery .kiln-grid button {
  min-height: 148px;
}

.kiln-profile.is-gallery .kiln-grid img {
  height: 148px;
}

.kiln .handle {
  overflow-wrap: anywhere;
}

.kiln-result-main b,
.kiln-note-copy b,
.kiln-post-head b {
  overflow-wrap: anywhere;
}

.kiln-using img,
.kiln-ava-btn,
.kiln-avatar {
  appearance: none;
}

.kiln .screen-body {
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .kiln-carousel,
  .kiln-tray,
  .kiln-tray-scrim,
  .kiln-using,
  .kiln-head-wrap,
  .kiln-head,
  .kiln-feed,
  .kiln-refresh-inner,
  .kiln-post,
  .sheet {
    animation: none !important;
    scroll-behavior: auto;
    transition: none;
  }
}

