:root {
  color-scheme: light;
  font:
    16px/1.44 system-ui,
    -apple-system,
    sans-serif;
  color: #171818;
  --line: #e3e3df;
  --muted: #5b5e5c;
  --paper: #fff;
  --width: 520px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #185cca;
  outline-offset: -3px;
}
.mast {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  max-width: var(--width);
  height: 54px;
  padding: 0 14px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.07em;
}
#view-label,
.byline small,
.media-label,
.recipient small {
  font-size: 0.8rem;
}
#view-label,
.byline small,
.recipient small {
  color: var(--muted);
}
main {
  width: min(100%, var(--width));
  margin: auto;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
.post {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f1;
  font-weight: 700;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
}
.byline strong,
.byline small {
  display: block;
  overflow-wrap: anywhere;
}
.media {
  position: relative;
}
.carousel {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.frame {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
  aspect-ratio: 4/5;
  background: #eeefeb;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-label,
.counter {
  position: absolute;
  border-radius: 16px;
  color: #fff;
  background: #171818cc;
  padding: 3px 9px;
  pointer-events: none;
}
.media-label {
  left: 11px;
  bottom: 11px;
}
.counter {
  right: 11px;
  top: 11px;
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
}
.media-step {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  color: white;
  background: #1718189c;
  border-radius: 50%;
  font-size: 1.7rem;
}
.media-step.prev {
  left: 8px;
}
.media-step.next {
  right: 8px;
}
.media-step:disabled {
  visibility: hidden;
}
@media (pointer: coarse) {
  .media-step:not(:focus-visible) {
    opacity: 0;
  }
}
.body {
  padding: 0 14px;
}
.tools {
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9px;
}
.icon-button svg,
.tab svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.icon-button[aria-pressed="true"] svg {
  fill: currentColor;
}
[data-act="like"][aria-pressed="true"] {
  color: #ce204d;
}
.bookmark {
  margin-left: auto;
}
.dots {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #c6c7c5;
}
.dots i.active {
  background: #226ac8;
}
.caption-title {
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}
.caption {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail {
  padding: 7px 0;
  min-height: 44px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
nav {
  position: fixed;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.tab {
  width: min(25%, 130px);
  min-height: 57px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
}
.tab[aria-current="page"] {
  font-weight: 750;
}
.tab[aria-current="page"] svg {
  stroke-width: 2.6;
}
dialog {
  width: min(100%, 500px);
  max-height: 82dvh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 60px #0004;
}
dialog::backdrop {
  background: #14151480;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.sheet-head {
  position: sticky;
  top: 0;
  background: white;
  padding: 8px 12px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
#dismiss {
  font-size: 1.5rem;
}
#dialog-content {
  padding: 16px 20px 22px;
  overflow-wrap: anywhere;
}
#dialog-content p {
  margin: 0 0 12px;
}
#dialog-content h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}
#dialog-content img {
  width: 100%;
  height: auto;
}
#dialog-content fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
#dialog-content legend {
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}
.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.recipients {
  padding: 0;
  list-style: none;
}
.recipient {
  margin: 8px 0;
  display: grid;
}
.primary {
  background: #171818;
  color: #fff;
  font-weight: 600;
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  margin-top: 12px;
}
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 8px;
  resize: vertical;
}
#notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 4;
  padding: 8px 16px;
  max-width: 95vw;
  background: #151515;
  color: white;
  border-radius: 12px;
  text-align: center;
  margin: 0;
  pointer-events: none;
}
#notice:empty {
  display: none;
}
.error {
  color: #ab2240;
}
.empty {
  padding: 34px 16px;
  text-align: center;
}
.message {
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 18px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
}
@media (max-width: 540px) {
  dialog {
    inset: auto 0 0;
    margin: auto;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (min-width: 560px) {
  .post {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 20px;
  }
}
.text-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 9%;
  background: #eceee5;
  color: #28352b;
}
.text-frame small {
  margin-bottom: 16px;
}
.text-frame strong {
  font-size: clamp(1.5rem, 7vw, 2.5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.message-text {
  white-space: pre-line;
}
.frame > img {
  position: absolute;
  inset: 0;
  background: #eeefeb;
}

.post-finance {
  margin-inline-start: auto;
  text-align: right;
  max-width: 47%;
  font-variant-numeric: tabular-nums;
}
.byline .post-finance small {
  font-size: 0.73rem;
  line-height: 1.25;
}
.post-finance strong {
  font-size: 0.88rem;
}
.post-finance a {
  text-decoration-color: #b4b8b4;
  text-underline-offset: 3px;
}
.post-caption .caption-title {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.3;
}
.offer {
  margin: 0.35em 0 0.6em;
}
.case-facts {
  margin: 0.45rem 0 0.15rem;
  overflow-wrap: anywhere;
}
.case-facts:empty {
  display: none;
}
.case-facts > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 10px;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.case-facts dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.case-facts dd {
  margin: 0;
  font-size: 0.94rem;
}
.case-facts a {
  text-decoration-color: #a2a7a2;
  text-underline-offset: 3px;
}
.recipe-menu {
  margin-top: 0.5rem;
}
.recipe-menu details {
  border-top: 1px solid var(--line);
}
.recipe-menu summary {
  cursor: pointer;
  padding: 0.65rem 0;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 650;
}
.recipe-menu p {
  margin: 0 0 0.6em;
  font-size: 0.94rem;
}
