/* hive, in the same paper-and-ink style as the other tools */
.hive, .hive-out { padding: 20px; display: grid; gap: 14px; margin-bottom: 22px; }
.hive-in { display: grid; gap: 14px; }
.hive textarea { width: 100%; font: 500 15px/1.5 ui-monospace, monospace; }
.examples { margin: -6px 0 0; font-size: 13px; }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.detected { display: flex; flex-wrap: wrap; gap: 6px; }
.detected:empty { display: none; }
.chip-k { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  font: 700 13px/1.3 ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-k.bad { border-style: dashed; color: var(--soft); }
.chip-k .x { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 0 0 2px; }
.zone.over { background: #fff6d6; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 38px; }
.switch input { width: 20px; height: 20px; accent-color: var(--ink); }

.cells-wrap summary { cursor: pointer; font-weight: 800; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.cell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; }
.cell.dim { opacity: .5; }
.cell input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.cell-body { display: grid; gap: 3px; min-width: 0; }
.cell-body b { font-size: 14px; }
.cell-body small { font-size: 12.5px; color: var(--soft); line-height: 1.35; }
.cell-body .hosts { font-family: ui-monospace, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.tag { justify-self: start; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 800; }
.tag.local { background: var(--lime); } .tag.net { background: var(--sky); }

.hive-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.hive-tools input { flex: 0 1 240px; min-height: 40px; padding: 6px 12px; border: var(--line); border-radius: 12px; background: #fff; font: 500 14px "Bricolage", system-ui, sans-serif; color: var(--ink); }
.hive-tools .seg .btn { text-transform: lowercase; }
.results { display: grid; gap: 8px; }
.empty { margin: 8px 0; }
.find { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; display: grid; gap: 6px; min-width: 0; }
.find-head { display: grid; grid-template-columns: 54px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.conf { height: 8px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.conf i { display: block; height: 100%; background: var(--ink); }
.kind { padding: 1px 8px; border-radius: 6px; background: var(--bg); font: 800 11px/1.6 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }
.val { overflow-wrap: anywhere; font: 600 13.5px/1.35 ui-monospace, monospace; color: var(--ink); }
a.val { text-decoration: underline; }
.src { font-size: 12.5px; font-weight: 700; color: var(--soft); text-align: right; }
.find dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: 13px; }
.find dt { color: var(--soft); font-weight: 700; }
.find dd { margin: 0; overflow-wrap: anywhere; }
.trail { margin: 0; font-size: 12px; color: #8d93ad; }
.trail:empty { display: none; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 13px; justify-self: start; }
.log summary { cursor: pointer; font-weight: 800; font-size: 14px; }
.log ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--soft); list-style: disc; }
.hive-note { display: grid; gap: 8px; max-width: 760px; margin: 0 auto 28px; font-size: 14.5px; }
@media (max-width: 560px) {
  .find-head { grid-template-columns: 44px auto minmax(0, 1fr); }
  .find-head .src { grid-column: 1 / -1; text-align: left; }
  .hive, .hive-out { padding: 14px; }
}

/* views, history, password, diff */
.hive-tools { align-items: start; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-left: 3px solid var(--ink); margin-left: 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 0 6px 16px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.timeline li.future::before { background: var(--paper); }
.timeline time { font: 700 12.5px ui-monospace, monospace; }
.timeline span { overflow-wrap: anywhere; }
.timeline small { display: block; color: var(--soft); }
.tree, .tree ul { margin: 0; padding-left: 18px; list-style: none; }
.tree { padding-left: 0; }
.tree li { position: relative; padding: 3px 0; }
.tree ul li::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; border-left: 2px solid #d9cfb6; }
.tree ul li::after { content: ""; position: absolute; left: -12px; top: 14px; width: 9px; border-top: 2px solid #d9cfb6; }
.node { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.node code { font: 600 13px ui-monospace, monospace; overflow-wrap: anywhere; }
.node small { color: var(--soft); font-size: 11.5px; }
.new { padding: 1px 6px; border: 2px solid var(--ink); border-radius: 6px; background: var(--lime); font: 800 10.5px/1.4 system-ui, sans-serif; text-transform: uppercase; }
.find-head:has(.new) { grid-template-columns: auto 54px auto minmax(0, 1fr) auto; }
.diff { margin: 0 0 6px; padding: 8px 12px; border: 2px dashed var(--ink); border-radius: 12px; font-size: 13.5px; }
.diff summary { cursor: pointer; font-weight: 800; }
.diff ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; font: 12.5px ui-monospace, monospace; }
.hive-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 22px; }
.hive-extra .card { padding: 18px; display: grid; gap: 10px; align-content: start; }
.hive-extra h2 { margin: 0; font-size: 20px; }
.hive-extra p { margin: 0; font-size: 14px; }
.pw .row input { flex: 1; min-height: 42px; padding: 8px 14px; border: var(--line); border-radius: 12px; font: 500 15px "Bricolage", system-ui, sans-serif; }
.pw-out { min-height: 1.4em; font-weight: 800; }
.pw-out.bad { color: #c2272d; } .pw-out.ok { color: #1f7a45; }
.hist ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; list-style: disc; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0; } .find-head:has(.new) { grid-template-columns: auto 44px auto minmax(0, 1fr); } }
