.log-tab { min-width: 0; }
.log-tab .log-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.log-tab .log-header h1 { margin: 0; }
.log-header-actions { display: flex; gap: 8px; }
.log-header-actions button { padding-inline: 12px; }
.log-header-actions [data-action="new"], .log-save-bar button { border-color: var(--accent); font-weight: 700; }
.log-memory { border-left: 4px solid var(--warn); font-size: .88rem; margin-top: 0; }
.log-form { display: grid; gap: 16px; }
.log-field { display: grid; gap: 8px; min-width: 0; font-weight: 600; }
.log-field input, .log-field textarea { width: 100%; font-weight: 400; }
.log-field textarea { display: block; min-height: 76px; overflow-y: hidden; resize: none; line-height: 1.4; }
.log-field textarea::placeholder, .log-field input::placeholder, .log-filters input::placeholder { color: var(--muted); opacity: 1; }
.log-options { min-width: 0; padding: 0; margin: 0; border: 0; }
.log-options legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.log-options legend .muted { margin-left: 8px; font-weight: 400; }
.log-lenses { display: grid; gap: 8px; }
.log-lenses button { display: flex; padding: 0; text-align: left; border-width: 2px; }
.log-lenses button .chip { margin: 0; padding: 8px 12px; border-radius: 8px; width: 100%; min-height: 44px; align-items: center; }
.log-lenses [aria-pressed="false"] .chip { background: var(--surface-2); border-left: 4px solid var(--lens); }
.log-lenses [aria-pressed="true"] .chip { border-left: 4px solid var(--lens); }
.log-segments, .log-photo-buttons { display: flex; gap: 8px; }
.log-segments button, .log-photo-buttons button { flex: 1; min-width: 0; border-width: 2px; }
.log-photo-buttons { margin-bottom: 12px; }
.log-tab button:disabled { color: var(--muted); cursor: default; }
.log-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.log-photo { display: grid; gap: 4px; min-width: 0; }
.log-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.log-photo button { width: 100%; padding-inline: 4px; font-size: .88rem; }
.log-save-bar { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 4px; }
.log-save-bar button { width: 100%; min-height: 48px; }
.log-form-error { margin: 0 0 8px; padding-left: 8px; border-left: 4px solid var(--danger); }
.log-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.log-filters select, .log-filters input { width: 100%; min-width: 0; }
.log-filters input { grid-column: 1 / -1; }
.log-tab [data-count] { margin: 12px 0 0; font-size: .88rem; }
.log-results h2 { margin-top: 20px; font-size: 1rem; color: var(--muted); }
.log-card { padding: 0; overflow: hidden; }
.log-card-open { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; border: 0; border-radius: 0; background: var(--surface); padding: 16px; text-align: left; }
.log-card-copy { min-width: 0; }
.log-card-copy h3 { overflow-wrap: anywhere; margin: 0 0 4px; }
.log-card-copy p { font-size: .88rem; margin: 4px 0 8px; }
.log-card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 28px; font-size: .8rem; }
.log-card-thumb { flex: 0 0 64px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.log-card > [data-delete-entry] { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--muted); font-size: .88rem; }
.log-card > [data-confirm="true"] { color: var(--text); border-left: 4px solid var(--danger); background: var(--surface-2); font-weight: 700; }
.log-export-summary h2, .log-tab .log-export-actions + section h2 { margin: 0 0 8px; }
.log-export-actions { display: grid; gap: 8px; margin: 16px 0; }
.log-export-actions button { min-height: 48px; text-align: left; }
.log-export-actions [data-action="share-json"] { border-color: var(--accent); font-weight: 700; }
.log-markdown { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .88rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .log-tab button { transition: background-color 120ms ease, border-color 120ms ease; }
}
