/* /my/: link a SeaGlance and choose its buoy from a list or a map */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.units { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.units li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--line); }
.units input[type=radio] { accent-color: var(--yellow); width: 18px; height: 18px; margin: 0; }
.units .who strong { font-weight: 400; }
.units .who span { color: var(--muted); font-size: 15px; display: block; }
.units .acts { display: flex; gap: 14px; }
.units button, .list button, .leaflet-popup-content button { font: inherit; font-size: 15px; background: none; border: 0;
  color: var(--yellow); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.units button:hover, .list button:hover { color: #fff; }
.howto { color: var(--muted); padding-left: 1.2em; display: block; }
.howto li { margin-bottom: 8px; }
.howto strong { color: var(--text); font-weight: 400; }
form.link { margin-top: 16px; }

section.picker-block { padding-top: 24px; }
.picker-block h2 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 4px; }
.find { display: flex; gap: 16px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.find input { font: inherit; flex: 1 1 280px; padding: 10px 14px; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; }
.find input:focus { outline: none; border-color: var(--yellow); }
.find .count { color: var(--muted); font-size: 15px; }
.pick { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.map { height: 560px; background: var(--ink-2); border: 1px solid var(--line); }
.list { height: 560px; overflow-y: auto; border: 1px solid var(--line); background: var(--ink-2); padding: 4px 0; }
@media (max-width: 860px) {
  .pick { grid-template-columns: 1fr; }
  .map { height: 380px; }
  .list { height: 460px; }
}
.list details { border-bottom: 1px solid var(--line); }
.list details details { border-bottom: 0; border-top: 1px solid var(--line); }
.list summary { cursor: pointer; padding: 10px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.list summary::-webkit-details-marker { display: none; }
.list summary::after { content: none !important; display: none !important; }
.list summary { font-size: 17px; letter-spacing: 0; text-transform: none; margin: 0; border: 0; }
.list summary::before { content: "›"; color: var(--muted); width: 1em; transition: transform .15s; display: inline-block; }
.list details[open] > summary::before { transform: rotate(90deg); }
.list summary span:first-of-type { flex: 1; }
.list summary .n { color: var(--muted); font-size: 14px; }
.list details details summary { padding-left: 32px; }
.list details details details summary { padding-left: 48px; }
.list .b { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 16px 7px 40px; }
.list details details .b { padding-left: 56px; }
.list details details details .b { padding-left: 72px; }
.list .b:hover, .list .b.on { background: var(--ink-3); }
.list .b .nm { flex: 1; min-width: 0; cursor: pointer; }
.list .b .nm small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .b.now .nm { color: var(--yellow); }
.list .flat .b { padding-left: 16px; }
.list .empty { color: var(--muted); padding: 16px; }
.tag { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow); margin-left: 6px; }
.legend { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E9ECEF; border: 2px solid #14181D;
  vertical-align: middle; margin-right: -2px; }
.dot.real { background: var(--yellow); }
.dot.now { background: transparent; border: 3px solid #FF5A3C; width: 16px; height: 16px; }
.leaflet-container { font: 300 15px/1.4 "Jost", system-ui, sans-serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ink-2); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content strong { font-weight: 500; }
.leaflet-popup-content small { color: var(--muted); display: block; margin: 2px 0 8px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink-3); color: var(--text);
  border: 1px solid var(--yellow); padding: 12px 20px; max-width: calc(100% - 32px); z-index: 2000; }
.toast.bad { border-color: #FF8A7A; }
.linkbox { margin-top: 8px; }
.linkbox > summary { cursor: pointer; list-style: none; display: block; }
.linkbox > summary::-webkit-details-marker { display: none; }
.linkbox > summary::after { content: none !important; }
.linkbox > summary h2 { display: inline-block; }
.linkbox:not([open]) > summary h2 { font-size: 17px; letter-spacing: .15em; color: var(--yellow); margin-top: 32px; }
.linkbox:not([open]) > summary h2::after { content: "  +"; }
.favs { background: var(--ink-2); border: 1px solid var(--line); padding: 12px 16px; margin: 12px 0 0; display: flex;
  gap: 8px 16px; flex-wrap: wrap; align-items: baseline; }
.favs strong { font-weight: 400; }
.favs .muted { font-size: 15px; }
.favs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.favs li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 2px 4px 2px 10px; font-size: 15px; }
.favs .fn { cursor: pointer; }
.favs .del { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1; }
.favs .del:hover { color: #FF8A7A; }
.list .b button.star { text-decoration: none; font-size: 18px; color: var(--muted); }
.list .b button.star.on { color: var(--yellow); }
.leaflet-popup-content button.star-p { display: block; margin-top: 6px; color: var(--muted); }
