.task-board { min-width: 0; }
.task-board-heading { margin-bottom: 12px; outline: none; }
.task-board-heading .panelhead { justify-content: flex-start; gap: 10px; }
.task-count { min-width: 24px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 12px/1.5 var(--mono); text-align: center; }
.task-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: 12px; }
.task-tile { position: relative; isolation: isolate; display: block; width: 100%; min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 13px; border: 1px solid #38504a; padding: 0; text-align: left; background: #132321; }
.task-tile:hover, .task-tile:focus-visible { border-color: var(--mint); }
.task-image, .task-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.task-cover { background: radial-gradient(ellipse at 50% 18%, #43675865, transparent 70%),linear-gradient(135deg,#263d35df,#11201bd6),url("assets/onda.webp") center/cover, #172e26; }
.task-cover > svg { position: absolute; top: 35%; left: 50%; transform: translate(-50%,-50%) rotate(-6deg); color: #bcead5; filter: drop-shadow(0 4px 8px #0c2516); }
.task-tile-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 3px; padding: 32px 13px 12px; background: linear-gradient(transparent,rgba(4,9,10,.82) 41%,rgba(4,9,10,.96)); }
.task-tile-caption strong { color: #fff; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-tile-date { font: 500 11px/1.2 var(--mono); color: #c5e9d6; }
.board-empty { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 16px 19px; border: 1px dashed #34483e; border-radius: 12px; background:#131d19; color: #c7d7ce; }
.board-empty svg { color: var(--mint); }
.task-photo-field { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; }
.task-photo-field legend { padding: 0 4px; font-weight: 600; font-size: 13px; }
.task-photo-field legend span { font-weight: normal; color: var(--muted); }
.task-photo-edit, .finish-task-preview { display: flex; align-items: center; gap: 12px; }
.photo-sample { position: relative; display: block; flex: 0 0 66px; width: 66px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); }
.photo-sample .task-cover > svg { top: 50%; width: 29px; height: 29px; }
.photo-choices, .task-camera > div { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-choices .btn { padding: 7px 10px; min-height: 38px; font-size: 13px; }
.task-photo-field input[hidden] { display: none; }
.task-camera video { display: block; width: 100%; max-height: 200px; margin-bottom: 8px; border-radius: 8px; background: #080d0b; }
.finish-task-preview strong { overflow-wrap: anywhere; }
.finish-task-preview p, .task-photo-field > p { font-size: 13px; }
@media(max-width: 620px) {
  .task-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .task-tile-caption { padding: 26px 10px 10px; }
  .task-photo-edit { gap: 8px; }
  .photo-choices .btn { min-height: 42px; }
}
