/* Imported History - HLC black/gold. Inherits global Helvetica + tokens. */
.ih-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--hlc-gold, #D4AF37); }
.ih-banner { border-radius: 10px; padding: 9px 14px; font-size: 13px; margin-bottom: 12px; }
.ih-banner-rehearsal { background: rgba(212,175,55,.10); border: 1px dashed rgba(212,175,55,.55); color: var(--hlc-gold-soft, #F7E7A1); }
.ih-banner-prod { background: rgba(40,120,60,.14); border: 1px solid rgba(120,200,140,.5); color: #bfe6c6; }
.ih-head h2 { margin: 0 0 4px; font-size: 22px; color: var(--hlc-gold, #D4AF37); }
.ih-sub { margin: 0 0 12px; font-size: 13px; color: var(--hlc-gold-soft, #F7E7A1); opacity: .7; }
.ih-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px 1fr; gap: 14px; min-height: 440px; }
.ih-rail { border: 1px solid rgba(212,175,55,.25); border-radius: 12px; background: #111; padding: 10px; overflow: auto; }
.ih-filter { width: 100%; box-sizing: border-box; background: #000; border: 1px solid rgba(212,175,55,.35); color: #eadfb8; border-radius: 8px; padding: 7px 10px; font: inherit; margin-bottom: 8px; }
.ih-convlist { list-style: none; margin: 0; padding: 0; }
.ih-conv { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--hlc-gold-soft, #F7E7A1); }
.ih-conv:hover { background: rgba(212,175,55,.08); }
.ih-conv.on { background: rgba(212,175,55,.16); color: var(--hlc-gold, #D4AF37); }
.ih-ctype { font-size: 11px; opacity: .7; min-width: 20px; }
.ih-cname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ih-arch { font-size: 10px; opacity: .55; border: 1px solid rgba(212,175,55,.3); border-radius: 6px; padding: 0 4px; }
.ih-ccount { font-size: 11px; opacity: .6; }
.ih-main { display: flex; flex-direction: column; border: 1px solid rgba(212,175,55,.25); border-radius: 12px; background: #0d0d0d; min-height: 0; }
.ih-mainhead { padding: 12px 16px; border-bottom: 1px solid rgba(212,175,55,.2); }
.ih-title { font-size: 15px; font-weight: 600; color: var(--hlc-gold, #D4AF37); }
.ih-srcrow { font-size: 12px; opacity: .65; margin: 4px 0 8px; }
.ih-srcrow code { background: #000; padding: 1px 5px; border-radius: 4px; }
.ih-srcrow a { color: var(--hlc-gold, #D4AF37); }
.ih-msgs { flex: 1; overflow: auto; padding: 12px 16px; min-height: 0; }
.ih-msg { margin-bottom: 14px; }
.ih-bubble { background: #141414; border: 1px solid rgba(212,175,55,.15); border-radius: 10px; padding: 8px 12px; }
.ih-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 3px; flex-wrap: wrap; }
.ih-author { font-weight: 600; color: var(--hlc-gold, #D4AF37); font-size: 13px; }
.ih-time { font-size: 11px; opacity: .55; }
.ih-imported { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: rgba(212,175,55,.15); color: var(--hlc-gold, #D4AF37); border-radius: 6px; padding: 1px 6px; }
.ih-edited { font-size: 10px; opacity: .5; }
.ih-text { white-space: pre-wrap; word-break: break-word; color: #eadfb8; font-size: 14px; }
/* Collapse is display-only: it caps the preview HEIGHT and fades the cut edge; the full text stays in the DOM. */
.ih-text--collapsed { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent); mask-image: linear-gradient(to bottom, #000 68%, transparent); }
.ih-collapse { margin-top: 4px; font-size: 11px; background: none; border: 1px solid rgba(212,175,55,.3); color: var(--hlc-gold-soft, #F7E7A1); border-radius: 6px; padding: 1px 8px; cursor: pointer; }
.ih-collapse:hover { background: rgba(212,175,55,.12); }
.ih-files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.ih-file { font-size: 12px; color: var(--hlc-gold-soft, #F7E7A1); border: 1px solid rgba(212,175,55,.3); border-radius: 6px; padding: 2px 8px; }
.ih-reacts { margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.ih-react { font-size: 11px; opacity: .7; }
.ih-replies { margin: 6px 0 0 18px; border-left: 2px solid rgba(212,175,55,.25); padding-left: 12px; }
.ih-empty { color: var(--hlc-gold-soft, #F7E7A1); opacity: .6; padding: 16px; font-size: 14px; }
.ih-err { color: #e0a0a0; }
@media (max-width: 760px) { .ih-body { grid-template-columns: 1fr; } .ih-rail { max-height: 180px; } }
