/* Logbook: progress rings, task dots, entry cards with photo evidence. */
.lb-prog{display:flex;flex-direction:column}
.lb-unit{border-bottom:1px solid var(--line-2)}
.lb-unit:last-child{border-bottom:0}
.lb-unit>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer}
.lb-unit>summary::-webkit-details-marker{display:none}
.lb-unit>summary .grow{min-width:0}
.lb-unit>summary b{display:block;font-size:14px;font-weight:600;line-height:1.3}
.lb-unit>summary small{color:var(--muted);font-size:12px}
.lb-unit>summary .chev{color:var(--muted);transition:transform .2s;width:16px}
.lb-unit[open]>summary .chev{transform:rotate(90deg)}
.lb-ring{--p:0;width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--brand) calc(var(--p)*1%),var(--line-2) 0)}
.lb-ring b{width:34px;height:34px;border-radius:50%;background:#fff;display:grid!important;place-items:center;font-size:11px!important;font-weight:700!important;font-variant-numeric:tabular-nums}
.lb-ring.ok{background:var(--green)}
.lb-tasks{list-style:none;margin:0;padding:0 16px 12px 16px}
.lb-tasks li{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px;border-top:1px dashed var(--line)}
.lb-tick{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--muted);flex:none}
.lb-tick .i{width:14px;height:14px}
.lb-tasks li.ok .lb-tick{background:var(--green-bg);color:var(--green)}
.lb-dots{display:flex;gap:4px;flex:none}
.lb-dots i{width:10px;height:10px;border-radius:50%;background:var(--line);display:block}
.lb-dots i.on{background:var(--green)}
.lb-list{display:grid;gap:14px;margin-bottom:20px}
.lb-list.two{grid-template-columns:repeat(auto-fill,minmax(440px,1fr))}
.lb-entry{display:grid;grid-template-columns:132px minmax(0,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh-1)}
.lb-entry.st-pending{border-left:3px solid var(--accent)}
.lb-entry.st-rejected{border-left:3px solid var(--red)}
.lb-photo{display:block;background:var(--soft);min-height:132px;position:relative}
.lb-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lb-photo.none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted)}
.lb-photo.none .i{width:26px;height:26px;opacity:.6}
.lb-body{padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.lb-top{display:flex;gap:10px;align-items:flex-start}
.lb-top h4{margin:0;font-size:15px}
.lb-who{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:var(--ink)}
.lb-who b{display:block;font-size:13.5px}.lb-who small{color:var(--muted);font-size:12px}
.lb-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12.5px;color:var(--muted);margin-top:4px;align-items:center}
.lb-meta .i{width:14px;height:14px}
.lb-desc{margin:0;font-size:14px;color:var(--ink-2)}
.lb-note{display:flex;gap:8px;background:var(--soft);border-radius:8px;padding:8px 10px;font-size:13px}
.lb-note .i{width:15px;height:15px;color:var(--brand);margin-top:2px}
.lb-sign{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line-2);padding-top:10px;margin-top:2px}
.lb-sign input{padding:8px 10px;font-size:13.5px}
.lb-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1.5px dashed #D4C6C0;border-radius:12px;background:var(--soft);padding:14px;cursor:pointer;text-align:center;color:var(--ink-2);font-weight:600;font-size:14px}
.lb-drop img{max-height:160px;border-radius:8px}
.lb-drop img:not([src]){display:none}
.lb-drop input{font-size:13px;border:0;background:none;padding:0;max-width:100%}
.lb-units{display:flex;flex-direction:column;max-height:70vh;overflow:auto}
.lb-units a{display:flex;gap:8px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--line-2);color:var(--ink);font-size:13.5px}
.lb-units a b{font-weight:650}
.lb-units a.on{background:var(--tint);color:var(--brand)}
.lb-units a:hover{text-decoration:none;background:var(--soft)}
@media (max-width:640px){
  .lb-list.two{grid-template-columns:minmax(0,1fr)}
  .lb-entry{grid-template-columns:minmax(0,1fr)}
  .lb-photo{min-height:180px}
}
