.eo-bbs.bn-page{
  --bn-ink:#111;
  --bn-mute:rgba(17,17,17,.52);
  --bn-line:#111;
  --bn-red:#c41212;
}

.bn-wrap{
  max-width:760px;
  margin:0 auto;
  padding:18px var(--gx,20px) 72px;
}

.bn-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:0 0 8px;
  padding:0 0 18px;
  border-bottom:2px solid #111;
}
.bn-kicker{
  margin:0 0 6px;
  font-family:var(--bb-mono);
  font-size:11px;
  letter-spacing:.12em;
  color:var(--bn-red);
}
.bn-head h1{
  margin:0 0 8px;
  font-family:var(--bb-serif);
  font-size:clamp(28px,4vw,36px);
  font-weight:700;
  line-height:1.1;
}
.bn-lead{
  margin:0;
  max-width:36em;
  font-size:13px;
  line-height:1.65;
  color:var(--bn-mute);
}
.bn-write{
  flex:0 0 auto;
  appearance:none;
  border:1px solid #111;
  background:#111;
  color:#fff;
  font-family:var(--bb-sans);
  font-size:13px;
  font-weight:700;
  padding:9px 14px;
  cursor:pointer;
  white-space:nowrap;
}
.bn-write:hover{background:var(--bn-red);border-color:#8e0e0e}

.bn-log{
  list-style:none;
  margin:0;
  padding:0;
}
.bn-row{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:0 16px;
  width:100%;
  margin:0;
  padding:16px 0 15px;
  border:0;
  border-bottom:1px solid rgba(17,17,17,.14);
  background:transparent;
  text-align:left;
  cursor:pointer;
  font:inherit;
  color:inherit;
  appearance:none;
}
.bn-row:hover .bn-row-title{color:var(--bn-red)}
.bn-row.is-pin{
  background:linear-gradient(90deg,rgba(196,18,18,.07),transparent 56%);
}
.bn-row.is-draft{opacity:.7}
.bn-row-date{
  padding-top:3px;
  font-family:var(--bb-mono);
  font-size:12px;
  line-height:1.35;
  color:var(--bn-mute);
  letter-spacing:.02em;
}
.bn-row-date b{
  display:block;
  font-size:15px;
  font-weight:600;
  color:#111;
}
.bn-row-title{
  margin:0 0 4px;
  font-family:var(--bb-serif);
  font-size:18px;
  font-weight:700;
  line-height:1.35;
  color:#111;
}
.bn-mark{
  display:inline-block;
  margin-right:8px;
  font-family:var(--bb-sans);
  font-size:11px;
  font-weight:700;
  color:var(--bn-red);
  vertical-align:middle;
}
.bn-mark.is-hold{
  color:rgba(17,17,17,.45);
}
.bn-row-ex{
  margin:0;
  font-size:13px;
  line-height:1.6;
  color:var(--bn-mute);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.bn-row-who{
  display:block;
  margin-top:8px;
  font-family:var(--bb-mono);
  font-size:11px;
  color:rgba(17,17,17,.38);
}

.bn-empty{
  padding:28px 0 8px;
  border-bottom:1px solid rgba(17,17,17,.14);
}
.bn-empty strong{
  display:block;
  font-family:var(--bb-serif);
  font-size:20px;
  margin-bottom:6px;
}
.bn-empty span{
  color:var(--bn-mute);
  font-size:13px;
  line-height:1.6;
}

.bn-write[hidden],
.bn-ops[hidden],
.bn-mask[hidden]{display:none !important}
.bn-mask{
  position:fixed;
  inset:0;
  z-index:12100;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(17,17,17,.52);
  overflow:hidden;
  padding:0;
  touch-action:none;
}
.bn-mask.is-open{display:flex}

.bn-read{
  display:block;
  width:min(720px,100%);
  max-height:100dvh;
  max-height:100vh;
  margin:0;
  background:#fff;
  border-left:1px solid #111;
  border-right:1px solid #111;
  padding:0 28px 32px;
  box-sizing:border-box;
  position:relative;
  z-index:1;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
  animation:bn-in .18s ease-out;
}
@keyframes bn-in{
  from{transform:translateY(10px);opacity:.4}
  to{transform:none;opacity:1}
}
.bn-read-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 18px;
  padding:22px 0 12px;
  border-bottom:1px solid #111;
  position:sticky;
  top:0;
  z-index:3;
  background:#fff;
}
.bn-read-bar .bn-kicker{margin:0}
.bn-x{
  appearance:none;
  border:1px solid #111;
  background:#fff;
  font-size:13px;
  font-weight:700;
  padding:6px 12px;
  cursor:pointer;
}
.bn-x:hover{background:#111;color:#fff}
.bn-read-meta{
  margin:0 0 10px;
  font-family:var(--bb-mono);
  font-size:12px;
  color:var(--bn-mute);
}
.bn-read h1{
  margin:0 0 18px;
  font-family:var(--bb-serif);
  font-size:clamp(26px,4vw,34px);
  line-height:1.22;
  font-weight:700;
}
.bn-read-body{
  font-size:16px;
  line-height:1.9;
  color:#1a1714;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.bn-read-body p,
.bn-read-body li,
.bn-read-body blockquote{
  display:block !important;
  position:static !important;
  -webkit-line-clamp:unset !important;
  -webkit-box-orient:unset !important;
  overflow:visible !important;
  max-height:none !important;
}
.bn-read-body p{margin:0 0 1em}
.bn-read-body p:last-child{margin-bottom:0}
.bn-read-body h2,
.bn-read-body h3,
.bn-read-body h4{
  margin:1.4em 0 .6em;
  font-family:var(--bb-serif);
  font-weight:700;
  line-height:1.35;
  color:#111;
}
.bn-read-body h2{font-size:22px}
.bn-read-body h3{font-size:18px}
.bn-read-body h4{font-size:16px}
.bn-read-body ul,
.bn-read-body ol{
  margin:0 0 1em;
  padding-left:1.35em;
}
.bn-read-body li{margin:.25em 0}
.bn-read-body hr{
  margin:1.4em 0;
  border:0;
  border-top:1px solid rgba(17,17,17,.14);
}
.bn-read-body table{
  width:100%;
  margin:0 0 1em;
  border-collapse:collapse;
  font-size:14px;
  line-height:1.55;
}
.bn-read-body th,
.bn-read-body td{
  border:1px solid rgba(17,17,17,.18);
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
}
.bn-read-body th{background:rgba(17,17,17,.04)}
.bn-read-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:28px;
  padding:14px 0 0;
  border-top:1px solid rgba(17,17,17,.14);
  background:transparent !important;
  font-family:var(--bb-mono);
  font-size:12px;
  color:rgba(17,17,17,.4);
}
.bn-ops{display:flex;gap:8px}
.bn-ops button{
  appearance:none;
  border:1px solid #111;
  background:#fff;
  font-family:var(--bb-sans);
  font-size:13px;
  padding:5px 10px;
  cursor:pointer;
}
.bn-ops button.is-danger{
  color:var(--bn-red);
  border-color:var(--bn-red);
}
.bn-ops button:hover{background:#111;color:#fff}
.bn-ops button.is-danger:hover{background:var(--bn-red);color:#fff}

.bn-writebox{
  width:min(640px,100%);
  max-height:100dvh;
  max-height:100vh;
  margin:0;
  background:#fff;
  border:1px solid #111;
  padding:22px 22px 18px;
  box-sizing:border-box;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.bn-writebox h3{
  margin:0 0 16px;
  font-family:var(--bb-serif);
  font-size:24px;
}
.bn-field{margin:0 0 14px}
.bn-field label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  color:var(--bn-mute);
}
.bn-field input[type="text"],
.bn-field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #111;
  background:#fff;
  font-family:var(--bb-sans);
  font-size:15px;
  padding:8px 10px;
  outline:none;
  color:#111;
}
.bn-field textarea{
  min-height:220px;
  line-height:1.7;
  resize:vertical;
}
.bn-opts{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin:4px 0 16px;
  font-size:13px;
}
.bn-opts label{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}
.bn-write-act{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.bn-write-act button{
  appearance:none;
  border:1px solid #111;
  background:#fff;
  font-size:14px;
  font-weight:700;
  padding:8px 14px;
  cursor:pointer;
}
.bn-write-act .is-go{
  background:#111;
  color:#fff;
}
.bn-write-act .is-go:hover{background:var(--bn-red);border-color:#8e0e0e}

.bn-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%) translateY(10px);
  z-index:1400;
  background:#111;
  color:#fff;
  font-size:13px;
  padding:8px 14px;
  opacity:0;
  pointer-events:none;
  transition:.18s;
}
.bn-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

html.bn-lock,
body.bn-lock{
  overflow:hidden !important;
  height:100%;
  width:100%;
}
body.bn-lock{
  position:fixed;
  inset:0;
}
body.bn-lock .bn-wrap{
  visibility:hidden;
  pointer-events:none;
}
body.bn-lock .bbs-ctrl,
body.bn-lock #plaza-sort-pin{
  visibility:hidden;
  pointer-events:none;
}

@media (max-width:640px){
  .bn-wrap{padding-bottom:max(72px, env(safe-area-inset-bottom))}
  .bn-head{flex-direction:column;align-items:flex-start;gap:12px}
  .bn-write{width:100%;text-align:center}
  .bn-row{grid-template-columns:56px minmax(0,1fr);gap:0 12px;padding:14px 0}
  .bn-row-title{font-size:16px}
  .bn-mask{align-items:stretch}
  .bn-read{
    width:100%;
    max-height:100dvh;
    border-left:0;
    border-right:0;
    padding:0 16px max(20px, env(safe-area-inset-bottom));
  }
  .bn-read-bar{
    padding:max(12px, env(safe-area-inset-top)) 0 10px;
    margin-bottom:14px;
  }
  .bn-read h1{
    font-size:22px;
    line-height:1.28;
    margin-bottom:14px;
  }
  .bn-read-meta{font-size:11px}
  .bn-read-body{font-size:15px;line-height:1.82}
  .bn-read-body h2{font-size:19px}
  .bn-read-body h3{font-size:16px}
  .bn-read-body table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    max-width:100%;
  }
  .bn-read-foot{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding-bottom:max(8px, env(safe-area-inset-bottom));
  }
  .bn-ops{width:100%;justify-content:flex-end}
  .bn-ops button{
    min-height:44px;
    padding:8px 14px;
  }
  .bn-x{
    min-height:44px;
    padding:8px 14px;
    flex-shrink:0;
  }
  .bn-writebox{
    width:100%;
    max-height:100dvh;
    border-left:0;
    border-right:0;
    padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .bn-writebox h3{font-size:20px}
  .bn-field textarea{min-height:180px;font-size:16px}
  .bn-write-act .is-go,
  .bn-write-act button{min-height:44px}
}
