/* jump.doil.dev — 홈페이지 공통 스타일(home.css)에 더하는 것만 둔다. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header.site nav { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 0; }
#who { margin-left: 16px; }

/* 들어오기 */
.login { max-width: 420px; margin-top: 24px; }
.login button { margin-top: 16px; width: 100%; justify-content: center; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); margin-top: 14px; }
label.check input { width: auto; }

/* 연구 요약 */
.summary { margin-top: 20px; padding: 18px 20px; border-left: 4px solid var(--accent); }
.summary h2 { margin: 0; font-size: 17px; }
.summary .text { white-space: pre-wrap; margin: 8px 0 0; }
.summary .muted { margin: 10px 0 0; }

/* 새 기록 */
.composer { margin: 28px 0 32px; }
.composer-top { display: flex; gap: 12px; flex-wrap: wrap; }
.composer-top > div:first-child { flex: 0 0 180px; }
.composer-top .grow { flex: 1 1 260px; min-width: 0; }
.composer label { margin-top: 0; }
.composer textarea { min-height: 96px; }
.composer > label { margin-top: 12px; }
.drop {
  margin-top: 12px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center;
  display: grid; gap: 6px; color: var(--muted); transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop button { font-size: 14px; padding: 4px 10px; }
.picked { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.picked li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.picked .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked .fsize { color: var(--muted); font-size: 13px; }
.picked button { font-size: 13px; padding: 2px 8px; }
.picked .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.picked .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.picked li.done .bar span { background: #2e9d5b; }
.picked li.failed { border-color: var(--danger); }
.composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.composer-actions span { margin-right: auto; }

/* 보기·찾기 */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font-size: 14px; padding: 6px 12px; border-radius: 99px; }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .filters button.on { color: #10131c; } }
.toolbar input[type="search"] { flex: 0 1 280px; }
#usage { margin: 10px 0 0; }

/* 날짜별 기록 */
.timeline { margin-top: 8px; }
.day h2 { margin: 36px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.day h2 .count { color: var(--muted); font-size: 14px; font-weight: 400; }
.day .posts { display: grid; gap: 14px; }
.post { padding: 18px 20px; }
.post-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.post-head .by { font-weight: 700; }
.post-head .time { color: var(--muted); font-size: 13px; }
.post-head .actions { margin-left: auto; display: flex; gap: 6px; }
.post-head .actions button { font-size: 13px; padding: 3px 10px; }
.post h3 { font-size: 17px; margin: 8px 0 0; letter-spacing: -0.01em; }
.post .text { white-space: pre-wrap; margin: 8px 0 0; }
.post .media { margin-top: 14px; display: grid; gap: 10px; }
.photos { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 1 / 1; display: block; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .noimg { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.video { margin: 0; max-width: 760px; }
.video video { display: block; width: 100%; max-height: 75vh; background: #000; border-radius: 12px; }
.video figcaption, .audio figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.video .warn { color: var(--danger); }
.audio { margin: 0; }
.audio audio { width: 100%; max-width: 520px; }
.files { display: grid; gap: 6px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file .ext { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.file .info { flex: 1; min-width: 0; }
.file .info strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .info span { color: var(--muted); font-size: 13px; }
.file .links { display: flex; gap: 6px; flex: none; }
.file .links a { font-size: 14px; padding: 6px 10px; }
.more { text-align: center; margin-top: 24px; }

/* 사진 크게 보기 */
.viewer { position: fixed; inset: 0; z-index: 20; background: rgba(10, 10, 10, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.viewer figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.viewer img { max-width: min(1400px, 100%); max-height: calc(100vh - 90px); object-fit: contain; border-radius: 6px; }
.viewer figcaption { color: #ddd; font-size: 14px; text-align: center; }
.viewer figcaption a { color: #9fb8ff; margin-left: 8px; }
.viewer button { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.viewer-close { position: absolute; top: 12px; right: 12px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; padding: 10px 16px; }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }

/* 고치기·설정 창 */
dialog { width: min(560px, calc(100vw - 32px)); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h2 { margin: 0 0 8px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }

@media (max-width: 600px) {
  .composer-top > div:first-child { flex: 1 1 100%; }
  .post { padding: 14px; }
  .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .file .links a.view { display: none; }
  .toolbar input[type="search"] { flex: 1 1 100%; }
}
