.diary-album-panel{border:1px solid #eee6dd;border-radius:10px;padding:10px;margin:8px 12px;background:#fffcf8;color:#55483d;font-size:13px}.diary-album-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px}.diary-album-fields label,.album-place-fields label{display:flex;flex-direction:column;gap:3px;min-width:0}.diary-album-panel input,.diary-album-panel select,.diary-album-dialog input{border:1px solid #d8cec3;border-radius:5px;padding:6px;max-width:100%;min-width:0;background:white;color:#55483d}.diary-album-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.diary-album-actions button,.diary-album-actions a{border:1px solid #ddcbb8;border-radius:6px;padding:7px 10px;background:#fff9f0;min-height:36px}.diary-album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin-top:8px}.diary-album-card{min-width:0;border:1px solid #e8dfd5;border-radius:8px;padding:7px;text-align:left;overflow-wrap:anywhere}.diary-album-card img{width:100%;height:110px;object-fit:cover;border-radius:5px}.diary-album-card time{display:block;font-size:12px}.diary-album-status{font-size:12px;margin:6px 0;white-space:pre-line}.diary-album-dialog{max-width:700px;width:calc(100% - 24px);max-height:90dvh;border:1px solid #dbcab8;border-radius:12px;padding:14px;color:#55483d;background:#fffdf9;overflow:auto}.diary-album-dialog::backdrop{background:#0008}.diary-album-dialog img,.diary-album-dialog video{max-width:100%;max-height:58dvh;margin:8px auto;display:block}.diary-album-dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.album-place-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:7px}.diary-album-body{white-space:pre-wrap;line-height:1.65}.diary-album-timeline{margin:8px 0;display:flex;flex-wrap:wrap;gap:6px;font-size:12px}

#historyList[hidden],#diaryAlbumResults[hidden]{display:none!important}
.diary-capture-timeline{display:flex;flex-direction:column;gap:8px;margin:12px 0}.diary-capture-timeline>strong{font-size:13px}.diary-capture-timeline>button{text-align:left;min-height:42px;padding:8px 12px;border:1px solid #ddcbb8;border-radius:9px;background:#fff9f0;color:#55483d;overflow-wrap:anywhere}
.diary-capture-timeline>button[aria-current="true"]{border-color:#b52140;background:#fff0f3;color:#822036;box-shadow:inset 3px 0 #b52140}
.diary-album-dialog.diary-album-gallery{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:max(env(safe-area-inset-top),12px) 12px max(env(safe-area-inset-bottom),12px);display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#292929}
.diary-album-gallery>.diary-album-actions:first-child{flex:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;margin:0;gap:8px;min-height:44px}
.diary-album-gallery-time{min-width:0;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.diary-album-gallery>.diary-album-actions:first-child button{flex:none;min-height:42px}
.diary-album-gallery .diary-album-slideshow{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.diary-album-gallery .diary-album-slideshow img,.diary-album-gallery .diary-album-slideshow video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;margin:0;object-fit:contain;will-change:transform}
.diary-album-gallery .diary-album-slideshow [hidden]{display:none!important}
.diary-album-gallery .diary-album-slideshow img{touch-action:none;user-select:none;-webkit-user-drag:none}
.diary-album-gallery .diary-album-photo-status{font-size:14px;text-align:center;color:#666;max-width:80vw}
.diary-album-gallery .diary-album-photo-status button{display:block;margin:12px auto 0;min-height:42px;padding:8px 16px;border:1px solid #ddcbb8;border-radius:6px;background:#fff9f0}
.diary-album-gallery>.diary-album-actions:last-child{flex:none;justify-content:center;margin:8px 0 0}
.diary-album-gallery>.diary-album-actions:last-child span{flex:0 0 100%;text-align:center;font-size:12px;color:#777}
.diary-album-gallery>.diary-album-actions:last-child button{min-height:42px}
.diary-album-video-gallery>.diary-album-video-status{font-size:13px;color:#475569;min-height:20px;margin:8px 0}
.diary-album-video-gallery>button{align-self:flex-start;min-height:42px;padding:0 16px;border:1px solid #c7d2fe;border-radius:9px;color:#4338ca;background:#eef2ff}
.diary-album-video-gallery .diary-album-video-list{flex:1;min-height:0;overflow:auto;padding:12px 2px 24px}
.diary-album-video-row{display:grid;grid-template-columns:minmax(96px,36%) minmax(0,1fr);align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #e5e7eb}
.diary-album-video-row.is-playing{background:#eef2ff}
.diary-album-video-row>img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#f1f5f9;border-radius:8px}
.diary-album-video-details{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.diary-album-video-details time,.diary-album-video-details span{font-size:13px;color:#475569;overflow-wrap:anywhere}
.diary-album-video-row button{min-height:42px;padding:0 12px;border:1px solid #c7d2fe;border-radius:9px;color:#4338ca;background:#eef2ff}
.diary-album-video-row video{grid-column:1/-1;display:block;width:100%;max-height:65dvh;background:#111;border-radius:8px}
@media (orientation:landscape) and (max-height:600px){
  .diary-album-dialog.diary-album-photo-gallery{display:grid;grid-template-columns:minmax(0,1fr) clamp(150px,23vw,220px);grid-template-rows:minmax(0,1fr);column-gap:10px;padding:8px max(env(safe-area-inset-right),10px) 8px max(env(safe-area-inset-left),10px)}
  .diary-album-photo-gallery>.diary-album-slideshow{grid-column:1;grid-row:1;min-width:0;min-height:0;height:100%;width:100%}
  .diary-album-photo-gallery>.diary-album-actions:first-child{grid-column:2;grid-row:1;align-self:start;flex-direction:column-reverse;align-items:stretch;gap:4px;min-width:0;z-index:1}
  .diary-album-photo-gallery>.diary-album-actions:first-child button{align-self:flex-start}
  .diary-album-photo-gallery>.diary-album-actions:last-child{grid-column:2;grid-row:1;align-self:end;display:flex;flex-direction:column;align-items:stretch;margin:0;gap:5px;min-width:0}
  .diary-album-photo-gallery>.diary-album-actions:last-child span{flex:none;text-align:left}
  .diary-album-photo-gallery>.diary-album-actions:last-child button{width:100%}
}
body.cf-ongoing-visible .diary-album-dialog.diary-album-gallery{top:42px;height:calc(100dvh - 42px);max-height:calc(100dvh - 42px)}
.diary-recording-player-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.diary-recording-player-row audio{flex:1 1 230px;min-width:0;max-width:100%}.diary-recording-player-row button,.diary-recording-transcript-controls button{flex:0 0 auto;min-height:42px;padding:0 14px;border:1px solid #ddcbb8;border-radius:8px;background:#fff9f0;color:#55483d}.diary-recording-transcript{border-top:1px solid #e8dfd5;padding-top:8px}.diary-recording-transcript-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.diary-recording-transcript-controls span{font-size:12px;color:#6b625b}.diary-recording-transcript-note{font-size:12px;color:#6b625b}.diary-recording-lines{display:flex;flex-direction:column;gap:4px;max-height:48dvh;overflow:auto;scroll-behavior:smooth}.diary-recording-line{display:grid;grid-template-columns:minmax(92px,auto) minmax(0,1fr);gap:8px;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#55483d;text-align:left}.diary-recording-line[aria-current="true"]{background:#fff0f3;color:#822036;box-shadow:inset 3px 0 #b52140}.diary-recording-line-meta{font-size:12px;font-weight:600;white-space:nowrap}.diary-recording-line-text{line-height:1.55;overflow-wrap:anywhere}.diary-recording-plain{line-height:1.65;white-space:pre-wrap}@media(max-width:360px){.diary-recording-line{grid-template-columns:1fr}.diary-recording-line-meta{white-space:normal}}
