:root {
  color-scheme: light;
  --ink: #19362d;
  --pine: #275b47;
  --soft: #5a6c60;
  --line: #d9dfd4;
  --paper: #f6f6f0;
  --sage: #e7eddf;
  --warm: #f3e3cf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mast,
main {
  width: min(1180px, 94%);
  margin: auto;
}
.mast,
.account,
.intro,
nav,
.byline,
.attachment,
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mast {
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 720;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand span {
  letter-spacing: 0.02em;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--pine);
}
.account {
  font-size: 14px;
}
.intro {
  justify-content: space-between;
  padding: 44px 0 26px;
  gap: 20px;
}
.eyebrow,
.meta {
  font-weight: 650;
  color: var(--soft);
  font-size: 13px;
}
.eyebrow {
  margin: 0 0 9px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font:
    500 clamp(34px, 5vw, 56px)/1.05 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 0;
}
.intro p:last-child {
  margin: 12px 0 0;
  color: var(--soft);
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--sage);
  font-weight: 600;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #967135;
  outline-offset: 2px;
}
.primary {
  background: var(--pine);
  color: #fff;
}
.primary span {
  margin-left: 16px;
}
.quiet {
  background: transparent;
  color: var(--pine);
}
nav {
  border-bottom: 1px solid var(--line);
  gap: 6px;
  flex-wrap: wrap;
}
nav button {
  border-radius: 0;
  background: transparent;
  min-height: 49px;
  color: var(--soft);
}
nav [aria-current] {
  border-bottom: 3px solid var(--pine);
  color: var(--ink);
}
nav span:not(:empty) {
  font-size: 12px;
  background: var(--sage);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 3px;
}
#refresh {
  margin-left: auto;
}
#notice:empty {
  display: none;
}
.workspace {
  margin: 24px 0 60px;
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
#collection,
#detail {
  padding: 22px;
  min-width: 0;
}
#collection {
  border-right: 1px solid var(--line);
  background: #fafbf7;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
  margin: 0;
}
.item {
  background: transparent;
  padding: 14px 12px;
  text-align: left;
  width: 100%;
  display: grid;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.item[aria-pressed="true"] {
  background: var(--sage);
  border-color: #c6d4c2;
}
.item small,
.item span,
.hint,
.meta {
  color: var(--soft);
}
.item span {
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byline {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  background: var(--warm);
  border-radius: 14px;
  font:
    24px Georgia,
    serif;
}
.byline h2 {
  margin: 2px 0;
}
.byline small {
  font-size: 13px;
  color: var(--soft);
}
.stream {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 0;
  max-height: 52vh;
  overflow: auto;
}
.message {
  max-width: 88%;
  align-self: flex-start;
}
.message.mine {
  align-self: flex-end;
}
.bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f3ec;
  padding: 12px 15px;
  border-radius: 15px 15px 15px 4px;
  line-height: 1.45;
}
.mine .bubble {
  background: #dfebdf;
  border-radius: 15px 15px 4px 15px;
}
.stamp {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--soft);
}
.mine .stamp {
  text-align: right;
}
.attachment {
  color: var(--pine);
  font-weight: 650;
  margin-top: 6px;
}
.composer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  gap: 8px;
}
.composer button {
  justify-self: end;
}
textarea,
input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a8b6a7;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 64px;
}
dialog {
  max-width: min(440px, 95vw);
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  padding: 24px;
}
dialog::backdrop {
  background: #102e2259;
}
dialog label,
dialog input,
dialog select {
  display: block;
  margin: 9px 0;
}
#invite-out a {
  overflow-wrap: anywhere;
  color: var(--pine);
}
.room-photo {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}
.room-section {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  white-space: pre-line;
}
.room-section p {
  margin-bottom: 0;
}
.room-section a,
#detail > a {
  color: var(--pine);
}
[hidden] {
  display: none !important;
}
@media (max-width: 690px) {
  .mast,
  main {
    width: 92%;
  }
  .mast {
    min-height: 59px;
  }
  .brand {
    font-size: 20px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0 16px;
  }
  .intro p:last-child {
    font-size: 14px;
  }
  .workspace {
    grid-template-columns: 1fr;
    margin-top: 13px;
  }
  .workspace:has(.item) #collection {
    border-bottom: 1px solid var(--line);
  }
  #collection {
    border-right: 0;
  }
  #collection,
  #detail {
    padding: 16px;
  }
  nav {
    gap: 0;
  }
  nav button {
    font-size: 14px;
    padding: 8px;
  }
  #items {
    max-height: 235px;
    overflow: auto;
  }
  .account {
    gap: 2px;
  }
  .message {
    max-width: 94%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
