/* LinkORA shared selector: one contained search/list surface rather
   than three long inline lists that break under the mobile keyboard. */
.diary-open-selector{width:100%;margin:10px 0 12px;min-height:46px}
.diary-choice-sheet{
 position:fixed;inset:auto 0 auto 0;top:0;z-index:40000;
 width:100%;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;
 background:var(--lk-selection-bg,var(--vk-page,#fff8ef));color:var(--lk-selection-text,var(--vk-ink,#29201d));
 padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,12px))
  max(10px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,12px));
 overflow:hidden;box-sizing:border-box;
}
.diary-choice-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:6px 0 12px}
.diary-choice-header strong{font-size:clamp(17px,4vw,22px);line-height:1.2;min-width:0}
.diary-choice-close{flex:0 0 auto;min-height:42px}
.diary-choice-search{
 appearance:none;width:100%;flex:0 0 auto;min-height:48px;
 border:2px solid var(--lk-selection-border,var(--vk-border,#d7c9bc));border-radius:12px;
 padding:11px 13px;background:var(--lk-selection-surface,var(--vk-surface,#fff));color:var(--lk-selection-text,var(--vk-ink,#29201d));
 font:400 16px/1.4 system-ui,-apple-system,Arial,sans-serif;
}
.diary-choice-search:focus{outline:2px solid var(--lk-selection-accent,var(--vk-accent,#91101c));outline-offset:1px}
.diary-choice-summary{flex:0 0 auto;margin:10px 0!important;font-size:12px!important;color:var(--lk-selection-muted,var(--vk-muted,#746861))}
.diary-choice-options{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
 border:1px solid var(--lk-selection-border,var(--vk-border,#d7c9bc));background:var(--lk-selection-surface,var(--vk-surface,#fff));border-radius:12px}
.diary-choice-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
 border-bottom:1px solid var(--lk-selection-border,var(--vk-border,#d7c9bc));padding:10px 12px;min-height:58px}
.diary-choice-option:last-child{border-bottom:0}
.diary-choice-name{font-size:clamp(13px,2.5vw,16px);font-weight:600;min-width:0;overflow-wrap:anywhere}
.diary-choice-mark{flex:0 0 auto;min-width:91px;min-height:40px;padding:7px 8px!important}
.diary-choice-footer{flex:0 0 auto;margin:8px 0 0!important;font-size:11px!important;color:var(--lk-selection-muted,var(--vk-muted,#746861))}
@media(min-width:700px){.diary-choice-sheet{left:50%;right:auto;transform:translateX(-50%);
 max-width:680px;border-left:1px solid var(--lk-selection-border,var(--vk-border,#d7c9bc));border-right:1px solid var(--lk-selection-border,var(--vk-border,#d7c9bc))}}
@media(max-width:390px){.diary-choice-option{padding:8px;gap:6px}.diary-choice-mark{min-width:82px;font-size:12px!important}}

/* Full catalogue chooser: consistent for Watched, Want and favorite artists. */
.diary-choice-option{
 grid-template-columns:46px minmax(0,1fr) auto;
 gap:10px;min-height:64px;
}
.diary-choice-media{width:44px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:9px;
 background:var(--lk-selection-soft,var(--vk-surface-soft,#f8eee6));border:1px solid var(--lk-selection-border,var(--vk-border,#d7c9bc))}
.diary-choice-poster{display:block;width:100%;height:100%;object-fit:contain}
.diary-choice-portrait{display:block;width:44px;height:44px;object-fit:cover;border-radius:50%}
.diary-choice-media:has(.diary-choice-portrait){border-radius:50%;width:44px;height:44px}
.diary-choice-initials{display:grid;place-items:center;font-size:20px;font-weight:600;color:var(--lk-selection-muted,var(--vk-muted,#746861));width:100%;height:100%}
.diary-choice-details{min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.diary-choice-meta{font-size:11px;color:var(--lk-selection-muted,var(--vk-muted,#746861))}
.diary-choice-option .diary-choice-mark[aria-pressed=true]{background:var(--lk-selection-accent,var(--vk-accent,#91101c));color:var(--lk-selection-on-accent,var(--vk-on-accent,#fff));border-color:var(--lk-selection-accent,var(--vk-accent,#91101c))}
@media(max-width:390px){.diary-choice-option{grid-template-columns:38px minmax(0,1fr) auto;gap:7px}
 .diary-choice-media{width:38px;height:46px}.diary-choice-portrait{width:38px;height:38px}
 .diary-choice-mark{min-width:76px!important}}
