.ib .card { padding: 20px; }
.ib-tools, .ib-actions, .ib-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ib-tools { align-items: end; }
.ib-tools > .ib-actions { margin-left: auto; }
.ib-select, .ib-compose label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ib-select select, .ib-compose textarea { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; padding: 8px 10px; }
.ib-meta, .ib time { color: var(--muted); font-size: 13px; }
.ib-meta { margin: 14px 2px; }
.ib-scope-empty { padding:18px; }
.ib-scope-empty .ib-actions { justify-content:center; }
.ib-grid { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(300px, 1.4fr); gap: 16px; align-items: start; }
.ib-grid > * { min-width: 0; }
.ib-bar { justify-content: space-between; }
.ib h2, .ib h3 { margin: 0; overflow-wrap: anywhere; }
.ib h2 { font-size: 18px; }
.ib h3 { font-size: 16px; }
.ib-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; text-decoration: none; color: var(--ink); padding: 13px 9px; border-bottom: 1px solid var(--line); }
.ib-row:hover, .ib-row.selected { background: #eff9fa; border-radius: 8px; }
.ib-author { font-weight: 650; overflow-wrap: anywhere; }
.ib-video-source { grid-column: 1/-1; display: block; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ib-video-source bdi { color: var(--ink); font-weight: 600; }
.ib-detail > .ib-video-source { margin: 0 0 5px; }
.ib-preview, .ib-row > span:last-child { grid-column: 1/-1; }
.ib-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ib-detail > .ib-actions, .ib-detail > .ib-bar, .ib-list > .ib-actions { margin: 12px 0; }
.ib-detail > .ib-bar:first-child { margin-top: 0; }
.ib-text, .ib-reply p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 12px 0; }
.ib-reply { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.ib-reply time { display: inline-block; }
.ib-compose { border-top: 1px solid var(--line); padding-top: 15px; }
.ib-compose textarea { width: 100%; min-height: 84px; resize: vertical; font-weight: normal; }
.ib-compose button { margin-top: 10px; }
.ib-notice { color: #73490e; background: #fff6e6; border-radius: 8px; padding: 10px; }
.ib-assist { margin: 10px 0; }
.ib-assist .ib-actions, .ib-reply-tools { align-items: end; }
.ib-reply-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.ib-reply-tools .ib-select { min-width: 8rem; max-width: 100%; }
.ib-reply-tools select { max-width: 100%; }
.ib-manage-link { padding: 8px 0; font-size: 13px; }
.ib-translation { border-inline-start: 3px solid #20838c; padding-inline-start: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ib-template-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ib-template-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ib-template-row p { white-space: pre-wrap; }
.ib-template-form { margin: 18px 0; display: grid; gap: 10px; max-width: 42rem; }
.ib-template-form label { display: grid; gap: 5px; }
.ib-template-form input, .ib-template-form textarea { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ib-template-form textarea { min-height: 88px; resize: vertical; }
@media(max-width: 570px){ .ib-template-row {display: grid;} .ib-reply-tools .ib-select {min-width: 0;max-width: 100%;} }
@media(max-width: 940px){ .ib-grid {grid-template-columns: minmax(0,1fr)} .ib-tools > .ib-actions {margin-left: 0} }
.ib-watch { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.ib-watch p { margin: 3px 0; color: var(--muted); }
