html.ft-open { overflow: hidden; }
.ft-dialog {
  --ft-ink: var(--ink, #142b40);
  --ft-muted: #4c5b65;
  color: var(--ft-ink);
  background: #fffefb;
  width: min(100% - 2.4rem, 760px);
  max-width: none;
  max-height: min(90vh, 920px);
  max-height: min(90dvh, 920px);
  border: 1px solid #dcdedb;
  border-radius: 12px;
  padding: 0;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: inherit;
  box-shadow: 0 18px 80px #0c26383d;
}
.ft-dialog::backdrop { background: rgb(14 33 48 / 65%); }
.ft-dialog [hidden] { display: none !important; }
.ft-top {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.35rem;
  padding: .24rem clamp(1.15rem, 4vw, 2.6rem);
  color: #fff;
  background: #142e46;
}
.ft-top > span { font-size: .8rem; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.ft-close { width: 2.8rem; height: 2.8rem; padding: .68rem; border: 0; border-radius: 50%; cursor: pointer; background: transparent; color: white; }
.ft-close:hover { background: #ffffff20; }
.ft-close:focus-visible { outline: 2px solid #fff; outline-offset: 0; }
.ft-close svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ft-header { padding: clamp(1.45rem, 3vw, 2.4rem) clamp(1.15rem, 4vw, 2.6rem) 1rem; }
.ft-header h2 {
  font-family: inherit;
  font-weight: 550;
  font-size: clamp(1.9rem, 4.3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.052em;
  margin: 0;
  color: var(--ft-ink);
  overflow-wrap: anywhere;
}
.ft-header h2:focus { outline: none; }
.ft-identity { color: var(--ft-muted); font-size: .93rem; font-weight: 500; margin: .65rem 0 0; overflow-wrap: anywhere; }
.ft-content { padding: 0 clamp(1.15rem, 4vw, 2.6rem) clamp(1.45rem, 3vw, 2.4rem); }
.ft-photo { margin: .6rem 0 1.35rem; }
.ft-photo img { display: block; width: 100%; max-height: 210px; object-fit: contain; background: #f2efe8; border-radius: 5px; }
.ft-photo figcaption, .ft-source { color: var(--ft-muted); font-size: .77rem; line-height: 1.5; overflow-wrap: anywhere; }
.ft-photo figcaption { padding-top: .4rem; }
.ft-block { padding: 1.35rem 0 1.05rem; border-top: 1px solid #d9dcd9; }
.ft-block h3, .ft-pending h3 { margin: 0; font-size: 1.12rem; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: var(--ft-ink); }
.ft-description, .ft-pending > p { color: var(--ft-muted); font-size: .88rem; line-height: 1.55; margin: .4rem 0; }
.ft-list { margin: .55rem 0 0; }
.ft-list > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: .9rem; padding: .5rem 0; border-bottom: 1px solid #e8e9e4; font-size: .89rem; line-height: 1.5; }
.ft-list dt { color: var(--ft-muted); overflow-wrap: anywhere; }
.ft-list dd { margin: 0; color: var(--ft-ink); font-weight: 550; overflow-wrap: anywhere; }
.ft-source { margin: .7rem 0 0; }
.ft-pending { padding: 1.05rem 1.2rem; margin-top: .25rem; border-radius: 6px; background: #f4f1ea; }
.ft-pending ul { margin: .75rem 0 0; padding-left: 1rem; columns: 2; column-gap: 2rem; }
.ft-pending li { margin-bottom: .2rem; color: var(--ft-muted); font-size: .83rem; line-height: 1.5; break-inside: avoid; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .ft-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .ft-list > div { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: .7rem; }
  .ft-pending ul { column-gap: 1.2rem; }
}
@media (max-width: 360px) { .ft-pending ul { columns: 1; } }
