.olb-board{border:1px solid #3a3a3a;background:#1f1f1f;border-radius:10px;padding:14px;color:#fff;position:relative}
/* 右寄せボタン */
.olb-toolbar{display:flex;gap:6px;justify-content:flex-end;margin:8px 0 10px}
.olb-btn{background:#2a2a2a;border:1px solid #555;border-radius:6px;padding:4px 8px;color:#ddd;cursor:pointer;font-size:.85em;opacity:.9;box-shadow:inset 0 0 0 0 transparent;transition:box-shadow .15s ease,opacity .15s ease}
.olb-btn.is-active{box-shadow:inset 0 0 0 2px #8bc34a;opacity:1}

/* 入力フォーム（最上部） */
.olb-form{display:flex;gap:8px;align-items:center;margin:0 0 10px 0;flex-wrap:wrap}
.olb-form input[type="text"]{background:#2a2a2a;border:1px solid #444;border-radius:6px;padding:8px 10px;color:#fff;outline:none}
.olb-form .olb-name{width:160px;max-width:40%}
.olb-form .olb-msg{flex:1;min-width:220px}
.olb-form .olb-send{background:#2e7d32;border:none;border-bottom:3px solid #1f5a23;color:#fff;padding:8px 14px;border-radius:8px;cursor:pointer}
.olb-form .olb-send:disabled{opacity:.6;cursor:default}
.olb-reply-indicator{font-size:.9em;opacity:.85;flex-basis:100%}
.olb-reply-indicator .olb-clear-reply{margin-left:6px;background:transparent;border:1px solid #555;border-radius:6px;padding:2px 8px;color:#ddd;cursor:pointer}

/* コメントリスト */
.olb-list{list-style:none;margin:0;padding-left:0}
.olb-item{margin:6px 0;padding-left:8px;border-left:2px solid #2e7d32;position:relative}
.olb-item .olb-row{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.olb-select{margin-right:4px;transform:translateY(1px)}
.olb-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.olb-author{font-weight:700;font-size:0.8em}
.olb-meta{opacity:.85;font-size:0.6em}
.olb-sep{opacity:.7}
.olb-votes{display:flex;gap:6px}
.olb-vote{background:#2a2a2a;border:1px solid #555;border-radius:6px;padding:2px 8px;color:#ddd;cursor:pointer}
.children{list-style:none;margin:6px 0 0 8px;padding-left:4px;border-left:1px dashed #444}

/* 低評価で非表示 */
.olb-item.olb-hidden .olb-row{filter:blur(3px);opacity:.4;pointer-events:none}
.olb-item.olb-hidden .olb-hidden-banner{display:flex}
.olb-hidden-banner{display:none;gap:8px;align-items:center;margin-top:6px;font-size:.9em;opacity:.85}
.olb-hidden-banner .olb-toggle-visibility{background:transparent;border:1px solid #555;border-radius:6px;padding:2px 8px;color:#ddd;cursor:pointer}

/* 非表示の一時表示 */
.olb-item.olb-hidden.olb-revealed .olb-row{filter:none;opacity:1;pointer-events:auto}
.olb-item.olb-hidden.olb-revealed .olb-hidden-banner .olb-toggle-visibility{border-color:#2e7d32}

/* プレビュー行：深い緑背景＋白文字（名前も含めて） */
.olb-preview-item{border-left-color:#88aa66;opacity:1}
.olb-preview-item .olb-row{background:#236343;color:#fff;border-radius:6px;padding:4px 6px}
.olb-preview-item .olb-content,.olb-preview-item .olb-author,.olb-preview-item .olb-meta,.olb-preview-item .olb-sep{color:#fff}

/* 空状態 */
.olb-empty{opacity:.7;padding:8px 4px;margin:6px 0;border-left:2px dashed #666}

/* スマホコンパクト */
@media (max-width: 600px){
  .olb-board{padding:10px}
  .olb-btn{padding:3px 6px}
  .olb-item .olb-row{gap:6px}
  .olb-author{font-size:0.75em}
  .olb-meta{font-size:0.55em}
  .olb-form .olb-name{width:120px}
  .olb-form .olb-send{padding:6px 10px}
  .olb-vote{padding:1px 6px;font-size:.9em}
}


/* === Minimal patch: show full comment text on mobile === */
@media (max-width: 768px){
  .olb-item .olb-content{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
    display: inline !important;
  }
}

/* === Minimal patch: spacing between parent threads === */
.olb-list > li:not(.child){
  margin-bottom: 1.1em;
}



/* === OLB 3.2.4 additions === */
.olb-form{
  border:2px solid #236343;
  background:#236343;
  color:#fff;
  border-radius:8px;
  padding:.6rem;
}
.olb-form .olb-mode{grid-column:1/-1;margin-bottom:.4rem;display:flex;gap:1rem;align-items:center;font-size:.95rem;}
.olb-form .olb-mode input[type="radio"]{accent-color:#184c38;}
.olb-name.olb-readonly{background:#e9ecef;color:#333;}
.olb-board:not(.has-reply) .olb-reply-indicator{display:none;}
/* 親スレッド間に余白 */
.olb-list > .olb-item[data-parent-id="0"]{margin-bottom:1.1em;}
/* モバイルで全文表示（強制省略を無効化） */
@media (max-width: 700px){
  .olb-item .olb-content{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;display:inline!important;}
}