:root {
  color-scheme: light;
  --ink: #182326;
  --muted: #51605d;
  --line: #ccd5cf;
  --paper: #f8faf6;
  --green: #185c4b;
  --acid: #e5ec93;
  --dark: #162125;
  font:
    100%/1.5 "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button,
a.download {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.58rem 0.95rem;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
button:hover,
a.download:hover {
  background: #e9f0e9;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #338772;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.wrap,
.bar-inner {
  width: min(1088px, calc(100% - 64px));
  margin: auto;
}
.brandbar {
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid #394544;
}
.bar-inner,
.brand,
#account-nav {
  display: flex;
  align-items: center;
}
.bar-inner {
  justify-content: space-between;
  min-height: 64px;
  gap: 10px;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  gap: 12px;
}
.mark {
  width: 26px;
  height: 26px;
  background: var(--acid);
  border-radius: 50%;
  position: relative;
}
.mark:after {
  content: "";
  position: absolute;
  inset: 9px -4px;
  border: 2px solid var(--dark);
  border-radius: 50%;
  transform: rotate(-35deg);
}
#account-nav {
  gap: 4px;
}
#account-nav button {
  border: 0;
  background: transparent;
  color: #ebeee9;
  font-size: 0.9rem;
}
#account-nav button:hover {
  background: #35423f;
}
.mast {
  background: #101819 url("./blackhole-cover.webp") center 46% / cover no-repeat;
  color: white;
}
.mast .wrap {
  min-height: 214px;
  display: flex;
  align-items: end;
  padding-block: 34px;
}
.mast h1 {
  font-size: 3.6rem;
  line-height: 1.04;
  max-width: 65%;
  margin: 0;
  font-weight: 650;
  text-shadow: 0 2px 6px #111;
}
.entry-mast .wrap {
  min-height: 270px;
}
.entry-mast h1 {
  font-size: 4.5rem;
  max-width: 100%;
}
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 2.05rem;
  line-height: 1.15;
  font-weight: 650;
}
h3 {
  font-size: 1.13rem;
}
.entry-body {
  padding-block: 34px 48px;
}
.entry-body form,
.entry-body > p {
  max-width: 420px;
}
.entry-body h2 {
  font-size: 1.75rem;
}
.entry-body form {
  display: grid;
  gap: 7px;
}
.entry-body label {
  margin-top: 11px;
  font-weight: 600;
}
.password-row {
  position: relative;
}
.password-row input {
  padding-right: 48px;
}
.password-row button {
  position: absolute;
  inset: 0 0 0 auto;
  border: none;
  background: none;
  display: grid;
  place-items: center;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #aab8b0;
  border-radius: 5px;
  color: var(--ink);
  background: white;
}
textarea {
  resize: vertical;
  min-height: 64px;
}
.action {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.action:hover {
  background: #154537;
  color: white;
}
.entry-body .action {
  margin-top: 14px;
}
.text-button {
  border: 0;
  padding: 0.65rem 0;
  background: none;
  color: var(--green);
}
#guest-note,
.status {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 12px;
}
.status:empty {
  display: none;
}
.world-body {
  padding-block: 28px;
}
#world-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.world-option {
  min-height: 105px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  text-align: left;
  font-size: 1.02rem;
}
.world-option svg {
  color: #40766c;
}
.world-option.education {
  background: var(--acid);
  border-color: #a7b663;
}
.world-option[aria-pressed="true"] {
  outline: 2px solid var(--green);
}
#world-status {
  margin-top: 16px;
}
.layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 32px;
  padding-block: 32px 100px;
}
.rail {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  border-right: 1px solid var(--line);
}
.rail button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
}
.rail button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.workspace {
  width: 100%;
  max-width: 846px;
  min-width: 0;
}
.section-heading,
.byline,
.compose-foot,
.item,
.post-actions,
.thread-form,
.message-form,
.section-heading,
.room-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading,
.compose-foot,
.item,
.room-head {
  justify-content: space-between;
}
.section-heading {
  margin-bottom: 16px;
}
.account-tag,
.minor,
small {
  color: var(--muted);
  font-size: 0.9rem;
}
.account-tag {
  overflow-wrap: anywhere;
}
.search {
  margin-bottom: 14px;
}
.search input {
  max-width: 440px;
}
.compose,
.entry-post,
.flat-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
}
.compose {
  margin: 0 0 22px;
}
.compose textarea {
  border: 0;
  padding: 0;
  min-height: 55px;
}
.compose-foot {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.select-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 650;
  cursor: pointer;
}
.select-file:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.select-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.preview-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.preview-row img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.preview-row button {
  font-size: 0.875rem;
}
.feed-list,
.catalog,
.thread-list {
  display: grid;
  gap: 12px;
}
.entry-post {
  padding: 0;
  overflow: hidden;
}
.entry-post > header,
.post-copy,
.post-actions,
.thread-area {
  padding: 12px 16px;
}
.byline {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.avatar {
  flex: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #dceadc;
  color: #285844;
}
.byline time {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.post-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #e7ede7;
}
.post-copy,
.thread-list p,
.chat-msg {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-actions {
  border-top: 1px solid var(--line);
  gap: 4px;
  flex-wrap: wrap;
}
.post-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.94rem;
}
.post-actions button[aria-pressed="true"] {
  background: #e1eee4;
  color: var(--green);
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.thread-list p,
.chat-msg {
  padding: 10px;
  background: #edf3ec;
  border-radius: 4px;
}
.thread-form,
.message-form {
  margin-top: 12px;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.empty strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}
.catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flat-item {
  display: grid;
  gap: 8px;
}
.study-group + .study-group {
  margin-top: 28px;
}
.study-group > h3 {
  margin-bottom: 10px;
}
.study-card {
  width: 100%;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 16px;
  text-align: left;
  line-height: 1.45;
}
.study-card:hover {
  border-color: var(--green);
}
.study-icon {
  color: var(--green);
}
.study-intro {
  color: var(--muted);
  font-weight: 400;
}
.study-product {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.study-product::backdrop {
  background: rgb(16 24 25 / 66%);
}
.study-product-header, .study-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.study-product-header {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
}
.study-product-header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.study-product h2 {
  margin-bottom: 8px;
}
.study-product h3 {
  margin-top: 18px;
}
.study-specs {
  margin: 8px 0 20px;
}
.study-specs > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.study-specs dt {
  font-weight: 600;
}
.study-specs dd {
  margin: 0;
}
.study-buy {
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
}
.item {
  width: 100%;
  text-align: left;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 15px 0;
  background: transparent;
}
.item small {
  display: block;
  font-weight: 400;
}
.room-head {
  margin-bottom: 15px;
}
.settings-form {
  display: grid;
  gap: 8px;
  max-width: 450px;
}
.settings-form button {
  justify-self: start;
}
.file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#buddy {
  position: fixed;
  z-index: 8;
  bottom: 20px;
  right: 20px;
  background: var(--acid);
  border: 2px solid var(--dark);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  touch-action: none;
  box-shadow: 0 3px 10px #17272729;
}
.buddy-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 24px;
  background: var(--dark);
  border-radius: 8px;
}
.buddy-head:before {
  content: "";
  position: absolute;
  height: 6px;
  border-left: 2px solid var(--dark);
  top: -5px;
  left: 16px;
}
.buddy-head i {
  width: 5px;
  height: 7px;
  border-radius: 4px;
  background: #e9faba;
}
#buddy-panel {
  position: fixed;
  z-index: 9;
  bottom: 84px;
  right: 16px;
  width: min(374px, calc(100% - 24px));
  max-height: calc(100dvh - 105px);
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px #101b2533;
  border-radius: 8px;
  overflow: auto;
}
#buddy-panel header {
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
#buddy-panel header small {
  display: block;
  color: #d5e3d7;
}
#buddy-panel header button {
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  border: 0;
}
#connection,
#messages,
#ask {
  padding: 12px;
}
#key-form {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
#messages {
  min-height: 75px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f4ec;
  padding: 8px 12px;
  border-radius: 6px;
}
.bubble.you {
  background: #dceee4;
}
#ask {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .wrap,
  .bar-inner {
    width: calc(100% - 32px);
  }
  .mast .wrap {
    min-height: 170px;
    padding-block: 24px;
  }
  .mast h1 {
    font-size: 2.65rem;
  }
  .entry-mast h1 {
    font-size: 3rem;
  }
  .mast {
    background-position: 60% center;
  }
  .layout {
    display: block;
    padding-top: 0;
  }
  .rail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    margin-bottom: 20px;
  }
  .rail button {
    width: 48px;
    height: 44px;
  }
  #world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading h2 {
    font-size: 1.65rem;
  }
  .bar-inner {
    min-height: 56px;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .post-actions button {
    padding: 0.5rem 0.3rem;
  }
  .compose {
    padding: 14px;
  }
  .account-tag {
    max-width: 40%;
    text-align: right;
  }
}
@media (max-width: 360px) {
  .entry-mast h1 {
    font-size: 2.55rem;
  }
}
@media (max-height: 520px) {
  #buddy-panel {
    bottom: 8px;
    max-height: calc(100dvh - 16px);
  }
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.member-actions a {
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 0.65rem 1.2rem;
  color: var(--green);
  font-weight: 650;
  text-decoration: none;
}
.member-actions a.member-primary {
  background: var(--green);
  color: white;
}
#member-help {
  max-width: 440px;
  color: var(--muted);
  margin: 10px 0;
}
#seats {
  display: block;
  margin-top: 12px;
}
