.apk-preview-root {
  min-height: 100vh;
  background: #050505;
  color: #f4f4f4;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

.apk-theme-light {
  background: #e9edf3;
  color: #101318;
}

.apk-theme-light .apk-device,
.apk-theme-light .apk-header,
.apk-theme-light .apk-screen,
.apk-theme-light .apk-sticky-tabs,
.apk-theme-light .apk-content--journal > .apk-segmented,
.apk-theme-light .apk-content--admin > .apk-top-tabs,
.apk-theme-light .apk-bottom-nav,
.apk-theme-light .apk-segmented button,
.apk-theme-light .apk-field input,
.apk-theme-light .apk-field select,
.apk-theme-light .apk-field textarea,
.apk-theme-light .apk-picker input,
.apk-theme-light .apk-chat-composer input {
  background: #f8fafc;
  color: #111827;
}

.apk-theme-light .apk-empty-card,
.apk-theme-light .apk-entry-card,
.apk-theme-light .apk-info-box,
.apk-theme-light .apk-picker,
.apk-theme-light .apk-profile-card,
.apk-theme-light .apk-donation-card,
.apk-theme-light .apk-settings-card,
.apk-theme-light .apk-info-stat,
.apk-theme-light .apk-admin-user-card,
.apk-theme-light .apk-message-bubble,
.apk-theme-light .apk-chat-composer {
  background: #ffffff;
  border-color: #c9d1dc;
  color: #111827;
}

.apk-theme-light .apk-header p,
.apk-theme-light .apk-empty-card p,
.apk-theme-light .apk-entry-card__summary p,
.apk-theme-light .apk-chat-hint,
.apk-theme-light .apk-profile-fields p,
.apk-theme-light .apk-settings-card p,
.apk-theme-light .apk-message p,
.apk-theme-light .apk-message span {
  color: #334155;
}

.apk-theme-light .apk-field span {
  background: #f8fafc;
}

.apk-theme-light .apk-message--mine .apk-message-bubble {
  background: #e8f0ff;
}

.apk-device {
  position: relative;
  overflow: hidden;
  width: min(100vw, 460px);
  min-height: 100vh;
  margin: 0 auto;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 28px 80px rgba(0,0,0,.55);
}

.apk-header {
  position: fixed;
  z-index: 48;
  top: 0;
  left: 50%;
  width: min(100vw, 460px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 18px 16px;
  background: #000;
}

.apk-header h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.apk-header p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #e5e5e5;
}

.apk-header-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #d8d8d8;
}

.apk-header-icon.is-muted::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  background: currentColor;
  transform: rotate(-38deg);
}

.apk-screen {
  min-height: calc(100vh - 110px);
  padding-top: 92px;
  padding-bottom: 116px;
  background: linear-gradient(180deg, #050509 0, #000 38px, #000 100%);
}

.apk-content {
  position: relative;
  min-height: calc(100vh - 236px);
  padding: 16px 18px 0;
}

.apk-sticky-tabs,
.apk-content--journal > .apk-segmented,
.apk-content--admin > .apk-top-tabs {
  position: fixed;
  z-index: 42;
  top: 92px;
  left: 50%;
  right: auto;
  width: min(calc(100vw - 36px), 424px);
  transform: translateX(-50%);
  box-sizing: border-box;
  padding-top: 8px;
  background: #000;
}

.apk-sticky-tabs .apk-segmented {
  margin-bottom: 10px;
}

.apk-content--chat,
.apk-content--journal,
.apk-content--admin {
  padding-top: 92px;
}

.apk-page-title {
  margin: 14px 0 22px;
  font-size: 28px;
  line-height: 1.1;
}

.apk-section-title {
  margin: 22px 0 14px;
  font-size: 18px;
  line-height: 1.2;
}

.apk-segmented {
  display: grid;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  margin: 0 0 14px;
  border: 1.5px solid #6d7471;
  border-radius: 24px;
}

.apk-segmented button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 50px;
  padding: 0 5px;
  border: 0;
  border-right: 1.5px solid #6d7471;
  background: #000;
  color: #f1f1f1;
  white-space: pre-line;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.apk-segmented button span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.apk-sticky-tabs--journal .apk-segmented {
  grid-template-columns: 1.2fr .95fr 1.25fr 1fr !important;
}

.apk-sticky-tabs--journal .apk-segmented button {
  gap: 4px;
  padding-inline: 2px;
  font-size: 12px;
}

.apk-sticky-tabs--journal .apk-segmented svg {
  position: static;
  width: 16px;
  height: 16px;
}

.apk-sticky-tabs--journal .apk-segmented .is-active span {
  padding-left: 0;
}

.apk-segmented button:last-child {
  border-right: 0;
}

.apk-segmented .is-active {
  background: #465372;
  color: #f4f6ff;
}

.apk-segmented svg,
.apk-bottom-nav svg,
.apk-fab svg,
.apk-round-button svg,
.apk-header-icon svg,
.apk-chat-composer svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.apk-empty-card,
.apk-entry-card,
.apk-info-box,
.apk-picker,
.apk-field input,
.apk-field select,
.apk-field textarea,
.apk-profile-card,
.apk-donation-card,
.apk-settings-card,
.apk-info-stat,
.apk-admin-user-card {
  border: 1.5px solid #252827;
  border-radius: 28px;
  background: #000;
}

.apk-empty-card {
  padding: 22px 16px;
  margin-top: 14px;
}

.apk-empty-card h2,
.apk-empty-card p,
.apk-entry-card h2,
.apk-entry-card p {
  margin: 0;
}

.apk-empty-card h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

.apk-empty-card p {
  color: #ededed;
  font-size: 20px;
  line-height: 1.45;
}

.apk-auth-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 22px;
  border-radius: 999px;
  background: #adc4ff;
  color: #082f58;
  font-weight: 900;
  text-decoration: none;
}

.apk-toast {
  margin: 0 18px 10px;
  padding: 12px 16px;
  border: 1.5px solid #465372;
  border-radius: 18px;
  background: #111827;
  color: #e7edff;
  font-size: 14px;
  font-weight: 800;
}

.apk-entry-list {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
}

.apk-entry-card {
  padding: 20px 14px 16px;
}

.apk-entry-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.apk-entry-card h2 {
  font-size: 19px;
  line-height: 1.2;
}

.apk-entry-card__summary p {
  margin-top: 7px;
  color: #b9b9b9;
  font-size: 17px;
}

.apk-entry-card__actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  justify-items: end;
}

.apk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1.5px solid #757b79;
  border-radius: 18px;
  color: #f3f3f3;
  font-size: 15px;
  font-weight: 800;
}

.apk-pill--filled {
  border-color: transparent;
  background: #465372;
}

.apk-round-button {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #465372;
  color: #f4f6ff;
}

.apk-entry-card__meta {
  margin-top: 18px !important;
  color: #c9c9c9;
  font-size: 15px;
}

.apk-entry-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.apk-divider {
  height: 1px;
  background: #2c2f2e;
}

.apk-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.apk-info-box {
  display: grid;
  gap: 8px;
  min-height: 68px;
  padding: 13px;
  align-content: center;
}

.apk-info-box--wide {
  min-height: 66px;
}

.apk-info-box--multiline strong {
  white-space: pre-line;
  line-height: 1.6;
}

.apk-info-box span {
  color: #bfbfbf;
  font-size: 13px;
  font-weight: 800;
}

.apk-info-box strong {
  color: #f4f4f4;
  font-size: 16px;
  font-weight: 400;
}

.apk-info-box strong.is-strong {
  font-weight: 900;
}

.apk-fab {
  position: fixed;
  z-index: 30;
  right: calc(50% - min(50vw, 230px) + 16px);
  bottom: 104px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 26px;
  border: 0;
  border-radius: 28px;
  background: #064fae;
  color: #edf3ff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

.apk-fab--create {
  bottom: 116px;
}

.apk-form {
  display: grid;
  gap: 18px;
}

.apk-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.apk-auth-links button,
.apk-text-button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #adc4ff;
  font-weight: 800;
  text-align: left;
}

.apk-field {
  display: grid;
  gap: 6px;
  color: #bcbcbc;
  font-size: 15px;
  font-weight: 700;
}

.apk-field input,
.apk-field select,
.apk-field textarea {
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  color: #f5f5f5;
  background: #000;
  font: inherit;
  font-size: 19px;
  outline: none;
}

.apk-field span {
  margin-left: 18px;
  margin-bottom: -18px;
  z-index: 1;
  width: max-content;
  padding: 0 5px;
  background: #000;
}

.apk-select-field select {
  color: #8e8e8e;
}

.apk-field--error {
  color: #ffb8b8;
}

.apk-field--error input {
  border-color: #ffb0b0;
}

.apk-field small {
  margin-left: 18px;
  color: #ffb8b8;
  font-size: 13px;
}

.apk-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 92px;
  padding: 18px 18px 16px;
  align-content: center;
  color: #d9d9d9;
  text-align: left;
  cursor: pointer;
}

.apk-picker small {
  font-size: 14px;
  font-weight: 800;
}

.apk-picker__value {
  color: #f4f4f4;
  font-size: 18px;
  line-height: 1.3;
}

.apk-picker__value.is-placeholder {
  color: #a7a7a7;
}

.apk-picker input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  font: inherit;
  font-size: 16px;
  opacity: 0;
  cursor: pointer;
  color-scheme: dark;
}

.apk-purpose-section h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.apk-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apk-choice-chip,
.apk-outline-button,
.apk-role-row button,
.apk-delete-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid #737a77;
  border-radius: 22px;
  background: #000;
  color: #f3f3f3;
  font-size: 15px;
  font-weight: 800;
}

a.apk-outline-button,
.apk-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.apk-install-card {
  margin-top: 16px;
}

.apk-choice-chip:disabled,
.apk-outline-button:disabled,
.apk-entry-action-row button:disabled,
.apk-role-row button:disabled,
.apk-delete-button:disabled {
  color: #6f6f6f;
  border-color: #262626;
}

.apk-choice-chip.is-active {
  border-color: transparent;
  background: #465372;
}

.apk-rules-link {
  min-height: 42px;
  margin: 16px 0 92px;
  padding: 0 18px;
  border: 1.5px solid #737a77;
  border-radius: 22px;
  background: #000;
  color: #dfe8ff;
  font-size: 15px;
  font-weight: 800;
}

.apk-entry-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apk-entry-action-row button {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid #737a77;
  border-radius: 22px;
  background: #000;
  color: #f3f3f3;
  font-size: 14px;
  font-weight: 800;
}

.apk-field--textarea textarea {
  min-height: 92px;
  padding-top: 24px;
  resize: none;
}

.apk-chat-hint {
  margin: 18px 0 26px;
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.55;
}

.apk-chat-connection {
  min-height: 18px;
  margin: -4px 0 8px;
  color: #9ca7c2;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.apk-chat-connection--online {
  color: #74d99f;
}

.apk-chat-connection--reconnecting {
  color: #ffc66f;
}

.apk-empty-card--chat {
  margin-top: 0;
}

.apk-chat-composer {
  position: fixed;
  right: calc(50% - min(50vw, 230px) + 18px);
  bottom: 106px;
  left: calc(50% - min(50vw, 230px) + 18px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border: 1.5px solid #252827;
  border-radius: 30px;
  background: #000;
}

.apk-chat-composer--text {
  grid-template-columns: 48px minmax(0, 1fr) 54px;
}

.apk-chat-composer.has-reply {
  grid-template-rows: auto 54px;
}

.apk-chat-composer button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #465372;
  color: #dfe8ff;
}

.apk-chat-composer .is-disabled {
  background: #171717;
  color: #858585;
}

.apk-chat-composer input {
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1.5px solid #737a77;
  border-radius: 26px;
  background: #000;
  color: #f4f4f4;
  font-size: 18px;
}

.apk-message-list {
  display: grid;
  gap: 14px;
  padding-bottom: 98px;
}

.apk-message {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.apk-message--mine {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.apk-message--mine .apk-avatar-button {
  grid-column: 2;
  grid-row: 1;
}

.apk-message--mine .apk-message-bubble {
  grid-column: 1;
  grid-row: 1;
  background: #111a2b;
}

.apk-message-bubble {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #242827;
  border-radius: 18px;
  background: #080808;
}

.apk-message.is-target .apk-message-bubble {
  border-color: #adc4ff;
  box-shadow: 0 0 0 3px rgb(173 196 255 / 16%);
}

.apk-typing {
  margin: 8px 0 0 62px;
  color: #9ca7c2;
  font-size: 13px;
  font-weight: 800;
}

.apk-message-image {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 10px;
  border-radius: 14px;
  object-fit: cover;
}

.apk-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.apk-avatar-button,
.apk-author-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.apk-avatar-button {
  align-self: start;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.apk-avatar-button .apk-avatar {
  width: 46px;
  height: 46px;
}

.apk-author-button {
  color: #f3f3f3;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.apk-message strong,
.apk-message p,
.apk-message span {
  display: block;
  margin: 0;
}

.apk-message p {
  margin-top: 4px;
  color: #e6e6e6;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.apk-message span {
  margin-top: 4px;
  color: #a9a9a9;
  font-size: 12px;
}

.apk-reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.apk-reaction-row button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #343837;
  border-radius: 16px;
  background: #060606;
  color: #f3f3f3;
  font-size: 13px;
  font-weight: 800;
}

.apk-reply-preview,
.apk-composer-reply {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #adc4ff;
  border-radius: 10px;
  background: #121212;
}

.apk-reply-preview strong,
.apk-composer-reply strong {
  color: #dfe8ff;
  font-size: 13px;
}

.apk-reply-preview span,
.apk-composer-reply span {
  color: #c9c9c9;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-composer-reply {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  margin: 0;
}

.apk-attach-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #465372;
  color: #dfe8ff;
}

.apk-attach-button input,
.apk-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apk-attach-button.is-disabled {
  opacity: .35;
}

.apk-direct-screen {
  display: grid;
  gap: 8px;
}

.apk-direct-screen > .apk-section-title {
  margin-top: 14px;
}

.apk-composer-reply button {
  width: 30px;
  height: 30px;
  background: #202020;
}

.apk-avatar-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 8px 10px;
  scrollbar-width: none;
}

.apk-avatar-strip::-webkit-scrollbar {
  display: none;
}

.apk-avatar-chip {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 800;
}

.apk-avatar-chip > span:last-child {
  display: block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #2a2a2a;
  border-radius: 50%;
  background: linear-gradient(135deg, #39445d, #141414);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.apk-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.apk-profile-avatar-side .apk-avatar {
  width: 82px;
  height: 82px;
  font-size: 30px;
}

.apk-profile-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
}

.apk-profile-dialog__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.apk-profile-dialog__head h2,
.apk-profile-dialog__head p {
  margin: 0;
}

.apk-profile-entry-list {
  display: grid;
  gap: 8px;
}

.apk-profile-entry-list article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #2d3130;
  border-radius: 14px;
}

.apk-profile-entry-list span {
  color: #aaa;
  font-size: 13px;
}

.apk-direct-list {
  display: grid;
  gap: 6px;
}

.apk-direct-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 10px 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #f4f4f4;
  text-align: left;
}

.apk-direct-row:active,
.apk-direct-row:focus-visible {
  background: #11151e;
}

.apk-direct-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.apk-direct-row__body strong {
  overflow: hidden;
  color: #f4f4f4;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-direct-row__body small,
.apk-direct-row time {
  color: #b9b9b9;
  font-size: 13px;
}

.apk-direct-row time {
  max-width: 124px;
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

.apk-direct-conversation-head {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px 2px 12px;
  border-bottom: 1px solid #202322;
}

.apk-direct-conversation-head > button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #171717;
  color: #eef2ff;
  font-size: 24px;
}

.apk-direct-conversation-head .apk-avatar {
  width: 46px;
  height: 46px;
}

.apk-direct-conversation-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.apk-direct-conversation-head strong {
  overflow: hidden;
  color: #f4f4f4;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-direct-conversation-head span {
  color: #a9a9a9;
  font-size: 13px;
}

.apk-profile-card,
.apk-donation-card,
.apk-settings-card,
.apk-admin-user-card {
  padding: 18px;
  margin-bottom: 14px;
}

.apk-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
}

.apk-profile-fields {
  display: grid;
  gap: 14px;
}

.apk-field--compact input {
  min-height: 62px;
}

.apk-profile-fields p,
.apk-settings-card p,
.apk-donation-card p {
  margin: 0;
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.5;
}

.apk-preview-badge {
  color: #d8d8d8;
}

.apk-preview-badge span {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #b30020;
  color: #fff;
  font-weight: 900;
}

.apk-profile-email {
  color: #fff !important;
  font-size: 18px !important;
}

.apk-profile-avatar-side {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 24px;
}

.apk-profile-photo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  background: radial-gradient(circle at 45% 30%, #eee, #815d4d 45%, #201813 72%);
}

.apk-outline-button.is-disabled {
  color: #666;
  border-color: #222;
}

.apk-donation-card {
  border-color: #315c9f;
  background: #083f87;
}

.apk-donation-card h2,
.apk-settings-card h2,
.apk-admin-user-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.apk-donation-card button,
.apk-donation-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 28px;
  background: #adc4ff;
  color: #0b315e;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.apk-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.apk-settings-row h3 {
  margin: 0 0 6px;
}

.apk-top-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #2c2f2e;
  margin-bottom: 20px;
}

.apk-top-tabs--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apk-top-tabs button {
  min-height: 52px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #000;
  color: #bed0ff;
  font-size: 17px;
  font-weight: 800;
}

.apk-top-tabs .is-active {
  border-bottom-color: #adc4ff;
}

.apk-admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apk-info-stat {
  display: grid;
  gap: 10px;
  min-width: 96px;
  min-height: 86px;
  padding: 16px;
}

.apk-info-stat span {
  color: #d0d0d0;
  font-size: 14px;
}

.apk-info-stat strong {
  font-size: 25px;
}

.apk-admin-users {
  display: grid;
  gap: 14px;
}

.apk-admin-users--compact {
  gap: 10px;
}

.apk-admin-user-card p {
  margin: 0 0 10px;
  font-size: 19px;
}

.apk-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.apk-role-row .is-active {
  border-color: transparent;
  background: #465372;
}

.apk-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 12px 0;
  color: #f1f1f1;
  font-size: 16px;
  font-weight: 800;
}

.apk-check-row input {
  width: 22px;
  height: 22px;
  accent-color: #adc4ff;
}

.apk-delete-button {
  color: #d5ddff;
}

.apk-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.apk-bottom-nav {
  position: fixed;
  z-index: 40;
  right: calc(50% - min(50vw, 230px));
  bottom: 0;
  left: calc(50% - min(50vw, 230px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-height: 100px;
  padding: 10px 10px 20px;
  border-top: 1px solid #101010;
  background: #000;
  box-shadow: 0 -18px 34px rgba(0, 0, 0, .92);
}

.apk-bottom-nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #bfbfbf;
  font-size: 14px;
  font-weight: 800;
}

.apk-bottom-nav button:focus,
.apk-bottom-nav button:focus-visible {
  outline: none;
}

.apk-bottom-nav__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  border-radius: 22px;
}

.apk-bottom-nav .is-active {
  color: #fff;
}

.apk-bottom-nav .is-active .apk-bottom-nav__icon {
  background: #465372;
  color: #edf3ff;
}

.apk-dialog-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .66);
}

.apk-dialog {
  width: min(360px, 100%);
  padding: 32px 26px 28px;
  border-radius: 28px;
  background: #101512;
  color: #ededed;
}

.apk-dialog h2 {
  margin: 0 0 24px;
  font-size: 25px;
  line-height: 1.35;
}

.apk-dialog p {
  margin: 0 0 17px;
  color: #d3d3d3;
  font-size: 17px;
  line-height: 1.45;
}

.apk-dialog button {
  display: block;
  min-width: 76px;
  min-height: 46px;
  margin: 30px 0 0 auto;
  border: 0;
  border-radius: 22px;
  background: #adc4ff;
  color: #073057;
  font-size: 16px;
  font-weight: 900;
}

.apk-policy-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0; }
.apk-policy-links a { color: #b8c9ff; font-size: 14px; font-weight: 800; text-underline-offset: 4px; }
.apk-settings-row--danger h3 { color: #ffb4ab; }
.apk-danger-outline-button { min-height: 44px; padding: 9px 18px; border: 1px solid #ffb4ab; border-radius: 22px; background: transparent; color: #ffb4ab; font: inherit; font-weight: 850; }
.apk-delete-dialog { width: min(440px, 100%); }
.apk-delete-dialog__icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: #54201c; color: #ffb4ab; font-size: 26px; font-weight: 900; }
.apk-delete-dialog .apk-field { margin-top: 20px; }
.apk-delete-dialog .apk-field input { width: 100%; }
.apk-delete-confirm { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: #d3d3d3; }
.apk-delete-confirm input { width: 20px; height: 20px; margin-top: 3px; accent-color: #ffb4ab; }
.apk-delete-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.apk-delete-actions button { min-width: 0; margin: 0; }
.apk-danger-button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 23px; background: #ffb4ab !important; color: #5c110d !important; font: inherit; font-weight: 900; }
.apk-danger-button:disabled, .apk-danger-outline-button:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 460px) {
  .apk-device {
    width: 100vw;
    box-shadow: none;
  }

  .apk-fab {
    right: 16px;
  }

  .apk-chat-composer,
  .apk-bottom-nav {
    right: 0;
    left: 0;
  }

  .apk-sticky-tabs,
  .apk-content--journal > .apk-segmented,
  .apk-content--admin > .apk-top-tabs {
    width: calc(100vw - 36px);
  }
}

/* Restrained polish of the ORIGINAL UI. Keep its palette, sections and bottom navigation. */
.apk-preview-root {
  --apk-shell-width: 1120px;
  --apk-gutter: 18px;
  --apk-edge: max(0px, calc((100vw - var(--apk-shell-width)) / 2));
  --apk-focus: #adc4ff;
  --apk-subtle-line: #303638;
  --apk-muted: #bdc4ce;
  --apk-control-radius: 18px;
  --apk-card-radius: 24px;
  color-scheme: dark;
  min-height: 100dvh;
}
.apk-preview-root.apk-theme-light {
  --apk-focus: #315aa6;
  --apk-subtle-line: #c9d1dc;
  --apk-muted: #475569;
  color-scheme: light;
}
.apk-device {
  width: min(100%, var(--apk-shell-width));
  min-height: 100dvh;
  box-shadow: 0 0 0 1px var(--apk-subtle-line);
}
.apk-header { width: min(100%, var(--apk-shell-width)); padding-inline: var(--apk-gutter); }
.apk-header > div { min-width: 0; }
.apk-header p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apk-header-icon { flex-shrink: 0; border-radius: 50%; }
.apk-content { padding-inline: var(--apk-gutter); }
.apk-sticky-tabs,
.apk-content--journal > .apk-segmented,
.apk-content--admin > .apk-top-tabs {
  width: min(calc(100% - 2 * var(--apk-gutter)), calc(var(--apk-shell-width) - 2 * var(--apk-gutter)));
}
.apk-bottom-nav {
  left: var(--apk-edge); right: var(--apk-edge);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-color: var(--apk-subtle-line);
  box-shadow: 0 -6px 20px rgb(0 0 0 / .14);
}
.apk-bottom-nav button { min-height: 58px; border-radius: 16px; font-weight: 600; }
.apk-bottom-nav__icon { width: min(64px, 100%); padding-inline: 10px; }
.apk-bottom-nav:has(button:nth-child(6)) { gap: 0; padding-inline: 6px; }
.apk-bottom-nav:has(button:nth-child(6)) button { font-size: 12px; }
.apk-bottom-nav:has(button:nth-child(6)) .apk-bottom-nav__icon { width: 52px; }
.apk-fab { right: calc(var(--apk-edge) + var(--apk-gutter)); bottom: calc(108px + env(safe-area-inset-bottom)); border-radius: 22px; font-weight: 600; }
.apk-screen { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
.apk-content--journal, .apk-content--create { padding-bottom: 84px; }
.apk-chat-composer {
  left: calc(var(--apk-edge) + var(--apk-gutter));
  right: calc(var(--apk-edge) + var(--apk-gutter));
  bottom: calc(104px + env(safe-area-inset-bottom));
  border-radius: 24px;
  border-color: var(--apk-subtle-line);
  z-index: 35;
}
.apk-empty-card, .apk-entry-card, .apk-profile-card, .apk-settings-card,
.apk-donation-card, .apk-admin-user-card { border-radius: var(--apk-card-radius); }
.apk-empty-card, .apk-entry-card, .apk-profile-card, .apk-settings-card,
.apk-admin-user-card { border-color: var(--apk-subtle-line); }
.apk-field input, .apk-field select, .apk-field textarea, .apk-picker { border-radius: var(--apk-control-radius); }
.apk-field input, .apk-field select, .apk-field textarea { font-size: 16px; min-width: 0; }
.apk-field span { max-width: calc(100% - 36px); }
.apk-info-box { border-radius: 16px; }
.invite-entry { border-radius: 20px; }
.apk-entry-card { padding: 20px 18px; }
.apk-entry-card__summary > div:first-child, .apk-profile-fields { min-width: 0; }
.apk-entry-card h2, .apk-info-box strong, .apk-profile-fields p,
.apk-admin-user-card p, .apk-message p { overflow-wrap: anywhere; }
.apk-pill { min-height: 34px; padding-inline: 12px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.apk-pill:not(.apk-pill--filled) { color: var(--apk-muted); }
.apk-outline-button, .apk-entry-action-row button, .apk-role-row button { border-radius: 20px; font-weight: 600; }
.apk-preview-root button { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.apk-preview-root button:active:not(:disabled) { filter: brightness(.92); }
.apk-preview-root button:disabled { cursor: not-allowed; opacity: .5; }
.apk-preview-root :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--apk-focus); outline-offset: 3px;
  scroll-margin-block: 190px;
}
.apk-picker:focus-within { outline: 3px solid var(--apk-focus); outline-offset: 3px; }
.apk-file-button:focus-within, .apk-attach-button:focus-within { outline: 3px solid var(--apk-focus); outline-offset: 3px; }
.apk-picker input { color-scheme: inherit; }
.apk-dialog { max-height: calc(100dvh - 36px); overflow-y: auto; }
.apk-preview-root .apk-toast { position: fixed; z-index: 80; top: 100px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 36px)); margin: 0; }
.apk-theme-light .apk-bottom-nav { box-shadow: 0 -6px 20px rgb(15 23 42 / .06); }
.apk-theme-light .apk-bottom-nav button { color: #475569; }
.apk-theme-light .apk-bottom-nav .is-active { color: #243f70; }
.apk-theme-light .apk-field, .apk-theme-light .apk-info-stat span,
.apk-theme-light .apk-check-row, .apk-theme-light .apk-preview-badge { color: #475569; }
.apk-theme-light .apk-profile-email { color: #111827 !important; }
.apk-theme-light .apk-avatar { border-color: #c9d1dc; background: linear-gradient(135deg, #e8eef8, #cbd7ea); color: #172033; }
.apk-theme-light .apk-outline-button, .apk-theme-light .apk-role-row button,
.apk-theme-light .apk-delete-button, .apk-theme-light .apk-rules-link { background: #ffffff; }
.apk-theme-light .apk-picker__value, .apk-theme-light .apk-info-box strong,
.apk-theme-light .apk-author-button, .apk-theme-light .apk-direct-conversation-head strong { color: #111827; }
.apk-theme-light .apk-picker__value.is-placeholder, .apk-theme-light .apk-info-box span { color: #475569; }
.apk-theme-light .apk-field small { color: #a42b32; }
.apk-theme-light .apk-top-tabs button { background: #f8fafc; color: #315aa6; }
.apk-theme-light .apk-top-tabs .is-active { border-bottom-color: #315aa6; }
.apk-theme-light .apk-outline-button, .apk-theme-light .apk-auth-links button,
.apk-theme-light .apk-text-button, .apk-theme-light .apk-role-row button,
.apk-theme-light .apk-entry-action-row button { color: #315aa6; }
.apk-theme-light .apk-role-row .is-active { color: #f4f6ff; }
.apk-theme-light .apk-sticky-tabs .apk-segmented .is-active { color: #f4f6ff; background: #465372; }
.apk-theme-light .apk-dialog { background: #fff; color: #111827; }
.apk-theme-light .apk-dialog p { color: #475569; }
@media (min-width: 768px) {
  .apk-preview-root { --apk-gutter: 28px; }
  .apk-content--auth { max-width: 560px; margin-inline: auto; }
  .apk-entry-card__actions { display: flex; align-items: center; }
  .apk-entry-card__summary { align-items: center; }
  .apk-admin-users { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .apk-admin-users--compact { grid-template-columns: 1fr; }
  .apk-profile-card { grid-template-columns: minmax(0, 1fr) 160px; gap: 32px; }
  .apk-message { max-width: 82%; }
  .apk-message--mine { margin-left: auto; }
  .apk-bottom-nav button { font-size: 15px; }
}
@media (max-width: 480px) {
  .apk-entry-card__summary { grid-template-columns: 1fr; gap: 12px; }
  .apk-entry-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .apk-entry-card__actions .apk-round-button { margin-left: auto; }
  .apk-profile-card { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; padding: 16px; }
  .apk-profile-avatar-side .apk-avatar { width: 76px; height: 76px; }
  .apk-profile-avatar-side .apk-outline-button { min-width: 0; width: 100%; padding-inline: 6px; font-size: 13px; }
  .apk-profile-email { font-size: 15px !important; }
  .apk-bottom-nav { padding-inline: 6px; gap: 0; }
  .apk-bottom-nav button { font-size: 12px; }
  .apk-bottom-nav:has(button:nth-child(6)) button { font-size: 11px; }
  .apk-message-head { flex-wrap: wrap; gap: 4px; }
  .apk-chat-composer { gap: 6px; padding: 8px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .apk-chat-composer button { width: 44px; height: 44px; }
  .apk-chat-composer input { padding-inline: 10px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .apk-preview-root *, .apk-preview-root *::before, .apk-preview-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Public content adapter. Journal component palette, font, shape and controls unchanged. */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#000}button,input,select{font:inherit}a{color:#adc4ff;text-underline-offset:4px}.apk-preview-root{background:#000}.apk-device{margin-inline:auto;background:#000}.apk-screen{background:#000}.apk-header{padding-top:20px;min-height:92px}.apk-header>div{display:flex;align-items:center;gap:14px}.original-logo{width:48px;height:48px;display:block;border-radius:0}.apk-header .brand-copy{display:block}.brand-copy a{color:inherit;text-decoration:none}.apk-header p{font-weight:400}.apk-content{padding-top:20px;display:grid;gap:24px;min-height:0}.apk-page-title{font-weight:400;margin:0 0 14px}.public-intro p,.public-article>p{font-size:16px;line-height:1.6;color:#bdc4ce;max-width:760px}.public-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.public-primary,.apk-outline-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;border-radius:24px;font-size:16px;font-weight:700;line-height:1.4;text-decoration:none}.public-primary{background:#adc4ff;color:#082f58;border:1px solid #adc4ff}.apk-outline-button{border:1px solid #6d7471;background:#000;color:#adc4ff}.public-section{scroll-margin-top:110px}.public-section>.apk-section-title{margin:0 0 16px;font-weight:500;font-size:20px}.apk-entry-card{background:#000}.public-article h2,.public-article h3{margin:0 0 12px;font-size:20px;font-weight:500;line-height:1.35}.public-article .source{display:inline-block;margin-top:18px;font-size:14px}.public-article details{margin-top:20px;border-top:1px solid #303638;padding-top:12px}.public-article summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#adc4ff;font-size:14px}.public-article details p{font-size:14px;color:#bdc4ce;line-height:1.6}.public-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.public-meta .apk-pill{font-size:12px;min-height:30px;font-weight:500}.public-geography{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.public-geography a{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;min-height:58px;border:1px solid #303638;border-radius:20px;padding:14px 18px;background:#000;color:#bdc4ce;font-size:15px;font-weight:500}.public-geography a[aria-current]{color:#f4f6ff;background:#465372;border-color:#465372}.public-geography a:hover{border-color:#adc4ff}.photo{margin:0;overflow:hidden;border:1px solid #303638;border-radius:24px;background:#000;min-width:0}.photo img{display:block;width:100%;height:250px;object-fit:cover;background:#000}.photo figcaption{padding:16px 18px;color:#bdc4ce;font-size:12px;line-height:1.6}.photo figcaption strong{display:block;font-size:14px;font-weight:500;color:#f4f4f4;margin-bottom:5px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.public-region-photo img{height:360px}.public-region-layout{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:18px}.public-region-layout .photo img{height:360px}.public-note{font-size:13px;line-height:1.6;color:#bdc4ce;margin:12px 0 0}.public-footer{border-top:1px solid #303638;padding:24px 0 0;display:flex;justify-content:space-between;gap:18px;font-size:12px;line-height:1.7;color:#bdc4ce}.public-footer p{margin:0}.apk-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr));min-height:90px}.apk-bottom-nav>a{display:grid;justify-items:center;align-content:center;gap:5px;min-height:58px;border-radius:16px;color:#bfbfbf;text-decoration:none;font-size:13px;font-weight:600}.apk-bottom-nav>a.is-active{color:#fff}.apk-bottom-nav .is-active .apk-bottom-nav__icon{background:#465372;color:#edf3ff}.public-filter{display:grid;grid-template-columns:1fr 240px;gap:14px;margin:0 0 16px}.public-filter .apk-field span{margin:0 0 -17px 18px;max-width:calc(100% - 36px)}.public-filter input,.public-filter select{font-size:16px;min-height:56px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card[hidden]{display:none}.status{font-size:13px;color:#bdc4ce;margin:0 0 16px}.web-skip-link{position:fixed;z-index:200;top:-100px;left:18px;padding:12px 20px;border-radius:24px;background:#adc4ff;color:#082f58}.web-skip-link:focus{top:12px}.apk-preview-root :is(a,summary):focus-visible{outline:3px solid #adc4ff;outline-offset:3px}.apk-preview-root svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@media(min-width:768px){.apk-content{padding-block:28px}.public-intro{padding:26px 24px}.public-geography{grid-template-columns:repeat(6,minmax(0,1fr))}.public-geography a{padding:12px;font-size:13px;justify-content:center}.public-geography a span{display:none}}@media(max-width:600px){.apk-header h1{font-size:22px}.apk-header p{font-size:12px}.original-logo{width:42px;height:42px}.apk-header>div{gap:12px}.apk-header .apk-outline-button{display:none}.public-geography{grid-template-columns:repeat(2,minmax(0,1fr))}.public-region-layout,.cards,.photo-grid{grid-template-columns:1fr}.public-region-layout .photo img{height:300px}.public-filter{grid-template-columns:1fr;gap:18px}.public-footer{display:block}.public-footer p+p{margin-top:12px}.apk-page-title{font-size:26px}.photo img{height:280px}.public-intro p{font-size:15px}.public-article>p{font-size:15px}.apk-content{gap:24px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
