/* My bookmarks page */
.bm-head{display:flex;gap:18px;align-items:center;padding-top:40px;margin-bottom:22px}
.bm-head h1{margin:0;font-size:clamp(28px,4vw,40px);letter-spacing:-.02em;line-height:1.15}
.bm-head p{margin:4px 0 0;color:var(--muted)}
.bm-av{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff;font-size:30px;font-weight:700;background:#3f3f46}
.bm-guest{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 20px;margin:0 0 22px;border:1px solid #e7ed7855;border-radius:16px;background:#e7ed780d}
.bm-guest[hidden]{display:none}
.bm-guest p{margin:0;font-size:15px}
.bm{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;align-items:start}
.bm-side{position:sticky;top:88px}
.bm-side h2{margin:0 0 10px;padding:0 14px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#71717a;font-weight:600}
.bm-cols{display:flex;flex-direction:column;gap:2px}
.bm-col,.bm-newcol{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;box-sizing:border-box;height:40px;padding:0 14px;border:0;border-radius:12px;background:none;color:var(--muted);font:600 14px/1 var(--font);cursor:pointer;text-align:left}
.bm-col span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-col small{color:#71717a;font-size:12px;font-weight:500}
.bm-col:hover,.bm-newcol:hover{background:var(--soft);color:var(--ink)}
.bm-col[aria-pressed="true"]{background:var(--soft);color:var(--ink)}
.bm-col[aria-pressed="true"] small{color:var(--pop)}
.bm-newcol{margin-top:6px;color:var(--pop)}
.bm-colform{display:flex;gap:6px;margin-top:8px}
.bm-colform[hidden]{display:none}
.bm-colform .pk-input,.bm-rename .pk-input{min-width:0;flex:1;height:40px;box-sizing:border-box}
.bm-hint{margin:10px 0 0;padding:0 14px;color:#71717a;font-size:13px}
.bm-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.bm-tools #bm-q{flex:1 1 240px;min-width:0;height:40px;box-sizing:border-box}
.bm-sort select{height:40px;box-sizing:border-box;padding:0 34px 0 16px;border-radius:999px;border:1px solid var(--line);background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;color:var(--ink);font:600 14px/1 var(--font);-webkit-appearance:none;appearance:none;cursor:pointer}
#bm-select[aria-pressed="true"]{background:var(--ink);color:#111;border-color:var(--ink)}
.bm-colbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 0}
.bm-colbar[hidden]{display:none}
.bm-colbar h2{margin:0;font-size:22px;letter-spacing:-.01em;min-width:0;overflow-wrap:anywhere}
.bm-colbar>span{display:flex;gap:8px}
.bm-rename{display:flex;gap:8px;flex:1 1 280px}
.bm-rename[hidden]{display:none}
.bm-count{color:var(--muted);font-size:14px;margin:16px 0 12px}
.bm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;padding-bottom:20px}
.bm-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.bm-card:hover{border-color:#3f3f46}
.bm-thumb{display:block;aspect-ratio:4/5;background:var(--soft);overflow:hidden}
.bm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bm-ph{display:grid;place-items:center;height:100%;font-size:52px;font-weight:700;color:#3f3f46;background:radial-gradient(closest-side at 30% 20%,#e7ed7814,transparent),linear-gradient(160deg,#18181b,#111113)}
.bm-body{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px;flex:1;min-width:0}
.bm-body h3{margin:0;font-size:15px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bm-body h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.bm-body small{color:#71717a;font-size:12px}
.bm-kind{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)!important}
.bm-gone{color:#fca5a5}
.bm-card.gone .bm-thumb{opacity:.35}
.bm-act{position:absolute;top:10px;right:10px;display:flex;gap:6px;z-index:2}
.bm-tocol{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #ffffff2e;background:#09090bb8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;opacity:0;transition:opacity .15s}
.bm-tocol svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.bm-card:hover .bm-tocol,.bm-tocol:focus-visible{opacity:1}
@media (hover:none){.bm-tocol{opacity:1}}
.bm-check{display:none;position:absolute;top:10px;left:10px;z-index:3;width:28px;height:28px;border-radius:8px;background:#09090bb8;place-items:center}
.bm-check input{width:18px;height:18px;margin:0;accent-color:var(--pop);cursor:pointer}
.bm.selecting .bm-check{display:grid}
.bm.selecting .bm-act{display:none}
.bm.selecting .bm-card{cursor:pointer;user-select:none}
.bm-card.sel{border-color:var(--pop);box-shadow:0 0 0 1px var(--pop)}
.bm-empty{grid-column:1/-1;text-align:center;padding:64px 20px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}
.bm-empty p{margin:0 auto 16px;max-width:460px}
.bm-empty p:last-child{margin-bottom:0;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.bm-more{grid-column:1/-1;text-align:center;padding-top:6px}
.bm-bulk{position:fixed;left:0;right:0;bottom:0;z-index:60;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#111113f2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.bm-bulk[hidden]{display:none}
.bm-bulk .pk-wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bm-bulk b{margin-right:auto;font-size:14px}
.pk .pk-btn.danger{color:#fca5a5}
.pk .pk-btn[disabled]{opacity:.4;cursor:not-allowed;transform:none}
.bm.selecting{padding-bottom:90px}
@media (max-width:980px){
 .bm{grid-template-columns:minmax(0,1fr);gap:16px}
 .bm-side{position:static;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .bm-side h2{display:none}
 .bm-cols{flex-direction:row;gap:6px;overflow-x:auto;max-width:100%;scrollbar-width:none;flex:0 1 auto}
 .bm-cols::-webkit-scrollbar{display:none}
 .bm-col,.bm-newcol{width:auto;flex:none;height:32px;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:13px}
 .bm-newcol{margin-top:0}
 .bm-colform{flex-basis:100%;margin-top:0}
 .bm-hint{flex-basis:100%;margin:0;padding:0}
 .bm-bulk{bottom:calc(58px + env(safe-area-inset-bottom));padding:10px 0}
 .bm.selecting{padding-bottom:150px}
}
@media (max-width:600px){
 .bm-head{padding-top:24px;gap:14px}
 .bm-av{width:56px;height:56px;font-size:24px}
 .bm-guest{flex-direction:column;align-items:stretch}
 .bm-tools .pk-chips{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none}
 .bm-tools .pk-chips .pk-chip{flex:none}
 .bm-sort{flex:1}.bm-sort select{width:100%}
 .bm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .bm-body{padding:10px 11px 12px}
 .bm-body h3{font-size:14px}
 .bm-act{top:7px;right:7px}
 .bm-act .pk-bm.ico,.bm-tocol{width:32px;height:32px}
 .bm-bulk .pk-btn{height:36px;padding:0 12px;font-size:13px}
 .bm-bulk b{flex-basis:100%}
}

/* public collections */
.bm-pubdot{width:7px;height:7px;border-radius:50%;background:var(--pop);flex:none;margin-left:auto;margin-right:-2px}
.bm-badge{display:inline-block;vertical-align:middle;margin-left:8px;padding:3px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:600;letter-spacing:0}
.bm-badge.on{border-color:var(--pop);color:var(--pop)}
.bm-colbar>span{flex-wrap:wrap}
.bm-share{flex-basis:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid #e7ed7855;border-radius:14px;background:#e7ed780d}
.bm-share p{margin:0;font-size:14px;max-width:520px}
.bm-share span{display:flex;gap:8px;flex-wrap:wrap}
.bm-chead{display:block}
.bm-chead h1{margin:6px 0 0}
.bm-chead p a{text-decoration:underline;text-underline-offset:3px}
.bm-cgrid{margin-top:18px}
