Skip to content

Record a sky camera around the clock, keep the footage on your own disk, and find what flew past.

14.5 KB
Raw Blame
/* Reusable media buckets: readable content rows and separate workflow provenance. */
.wk-buckets-page,
.wk-bucket-page {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
.wk-bucket-page .wk-page-heading {
  margin-bottom: 20px;
}
.wk-archive-bucket {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--osc-sky) 8%, var(--background));
  cursor: pointer;
}
@media (hover: hover) {
  .wk-archive-bucket:hover {
    border-color: var(--muted-foreground);
  }
}
.wk-archive-bucket > svg:first-child {
  width: 34px;
  height: 34px;
  color: var(--muted-foreground);
  stroke-width: 1.4;
  flex: none;
}
.wk-archive-bucket > span {
  flex: 1;
  display: grid;
  gap: 5px;
}
.wk-archive-bucket small {
  font-size: 12px;
  color: var(--muted-foreground);
}
.wk-archive-bucket strong {
  font-size: 20px;
  font-weight: 500;
}
.wk-archive-bucket > span > span {
  font-size: 14px;
  color: var(--muted-foreground);
}
.wk-archive-bucket > svg:last-child {
  width: 20px;
  flex: none;
}
.wk-labeled-buckets {
  margin-top: 48px;
}
.wk-labeled-buckets > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.wk-labeled-buckets h2 {
  font-size: 20px;
  font-weight: 500;
}
.wk-labeled-buckets header p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.wk-labeled-buckets .wk-search {
  margin: 0;
  width: 260px;
}
.wk-bucket-list {
  border-block: 1px solid var(--border);
}
.wk-bucket-list > li + li {
  border-top: 1px solid var(--border);
}
.wk-bucket-list-entry {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wk-bucket-list-entry > .wk-bucket-list-row {
  flex: 1;
  min-width: 0;
}
.wk-bucket-list-entry > .wk-delete-action {
  flex-shrink: 0;
}
.wk-bucket-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) 20px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 12px;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) {
  .wk-bucket-list-row:hover {
    background: var(--accent);
  }
}
.wk-bucket-list-row strong {
  font-weight: 500;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.wk-bucket-list-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 14px;
}
.wk-bucket-list-row svg {
  width: 18px;
  color: var(--muted-foreground);
}
.wk-bucket-usage,
.wk-bucket-state {
  color: var(--muted-foreground);
  font-size: 13px;
}
.wk-bucket-intro {
  padding: 35px 0;
  border-top: 1px solid var(--border);
  max-width: 650px;
}
.wk-bucket-intro h3 {
  font-size: 20px;
  font-weight: 500;
}
.wk-bucket-intro p {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-top: 12px;
  max-width: 58ch;
}
.wk-bucket-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wk-bucket-retention {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 32px;
}
.wk-bucket-tabs > [role="tablist"] {
  gap: 24px;
  margin-bottom: 32px;
}
.wk-bucket-tabs > [role="tablist"] button {
  font-size: 15px;
  padding: 12px 2px;
}
.wk-bucket-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
}
.wk-bucket-contents {
  padding: clamp(28px, 7vh, 80px) 24px;
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
}
.wk-bucket-contents > svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
  margin: 0 auto 22px;
  color: var(--muted-foreground);
}
.wk-bucket-contents h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.wk-bucket-contents p {
  max-width: 46ch;
  margin: 16px auto 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.wk-bucket-contents small {
  color: var(--muted-foreground);
  font-size: 13px;
}
.wk-bucket-contents p.wk-camera-count {
  font-size: 13px;
  margin-top: -8px;
}
.wk-bucket-lineage {
  border-left: 1px solid var(--border);
  padding: 20px 0 20px 26px;
}
.wk-bucket-lineage h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 28px;
}
.wk-bucket-lineage section + section {
  margin-top: 30px;
}
.wk-bucket-lineage h3 {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.wk-bucket-lineage p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.wk-bucket-lineage button {
  width: 100%;
  text-align: left;
  padding-inline: 0;
  height: auto;
  min-height: 44px;
  justify-content: space-between;
  font-size: 14px;
}
.wk-bucket-lineage button span {
  overflow-wrap: anywhere;
  white-space: normal;
}
.wk-bucket-lineage button svg {
  flex: none;
  color: var(--muted-foreground);
}
.wk-version-empty {
  max-width: 650px;
  margin: 30px auto 70px;
  padding-top: 20px;
}
.wk-version-empty h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 12px 0 18px;
}
.wk-version-empty p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted-foreground);
}
.wk-version-path {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 32px 0;
  padding: 24px 0;
  border-block: 1px solid var(--border);
  font-size: 14px;
}
.wk-version-path strong {
  font-weight: 500;
}
.wk-version-path svg {
  flex: none;
  width: 18px;
  color: var(--muted-foreground);
}
.wk-version-empty small {
  display: block;
  max-width: 58ch;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
}
.wk-bucket-picker .wk-search {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--wk-settings-surface);
  margin-bottom: 24px;
}
.wk-bucket-picker section + section {
  margin-top: 26px;
}
.wk-bucket-picker h3 {
  font-size: 12px;
  color: var(--muted-foreground);
  padding-inline: 8px;
  margin-bottom: 8px;
}
.wk-bucket-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 12px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.wk-bucket-choice > svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.wk-bucket-choice > span {
  flex: 1;
  min-width: 0;
}
.wk-bucket-choice strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.wk-bucket-choice small {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 6px;
}
.wk-bucket-choice[aria-pressed="true"] {
  background: color-mix(in srgb, var(--osc-sky) 12%, transparent);
}
@media (hover: hover) {
  .wk-bucket-choice:hover:not(:disabled) {
    background: color-mix(in srgb, var(--osc-sky) 12%, transparent);
  }
}
.wk-bucket-choice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wk-new-bucket {
  width: 100%;
  margin-top: 18px;
}
.wk-bucket-form small {
  color: var(--muted-foreground);
  font-weight: 400;
}
.wk-bucket-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.wk-form-note {
  margin: -4px 0 24px;
}
@media (max-width: 1000px) {
  .wk-bucket-content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .wk-bucket-lineage {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 26px 0;
  }
  .wk-bucket-contents {
    padding: 24px 0;
  }
}
@media (max-width: 760px) {
  .wk-archive-bucket {
    padding: 20px;
    gap: 16px;
  }
  .wk-archive-bucket > svg:first-child {
    display: none;
  }
  .wk-labeled-buckets {
    margin-top: 34px;
  }
  .wk-labeled-buckets > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .wk-labeled-buckets .wk-search {
    width: 100%;
  }
  .wk-bucket-list-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 20px 4px;
  }
  .wk-bucket-list-row > span:first-child {
    grid-column: 1;
  }
  .wk-bucket-list-row > svg {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .wk-bucket-state {
    display: none;
  }
  .wk-bucket-usage {
    grid-column: 1;
  }
  .wk-version-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .wk-version-path svg {
    transform: rotate(90deg);
  }
  .wk-bucket-form input {
    font-size: 16px;
  }
}

/* Real outputs: media gets the area; review controls stay alongside it. */
.wk-bucket-content-grid:has(.wk-results) {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.wk-bucket-contents:has(.wk-results) {
  display: block;
  text-align: left;
  padding: 24px 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
.wk-results {
  min-width: 0;
}
.wk-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wk-results-toolbar h2 {
  margin: 0 0 6px;
}
.wk-results-toolbar p {
  margin: 0;
  color: var(--muted-foreground);
}
.wk-results-toolbar > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wk-results-toolbar > div:first-child {
  display: block;
}
.wk-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.wk-image-grid article {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--background);
}
.wk-image-grid article[data-selected="true"] {
  border-color: var(--wk-accent);
  box-shadow: 0 0 0 1px var(--wk-accent);
}
.wk-review-image {
  display: block;
  width: 100%;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
  background: var(--osc-night);
}
.wk-review-image img {
  display: block;
  width: 100%;
  height: auto;
}

.wk-annotation-box {
  position: absolute;
  border: 1px solid var(--osc-sky);
  box-shadow: 0 0 0 0.5px var(--osc-night);
  pointer-events: none;
}

.wk-image-caption {
  display: grid;
  gap: 6px;
  padding: 14px;
  font-size: 14px;
}
.wk-image-caption span,
.wk-image-caption small {
  color: var(--muted-foreground);
}
.wk-version-list article,
.wk-run-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.wk-version-list h3,
.wk-run-list h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.wk-version-list p,
.wk-run-list p {
  color: var(--muted-foreground);
  margin: 0;
}
.wk-run-list article > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wk-run-list progress {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 6px;
  margin: 12px 0;
  accent-color: var(--wk-accent);
}
@media (max-width: 900px) {
  .wk-bucket-content-grid:has(.wk-results) {
    grid-template-columns: minmax(0, 1fr);
  }
  .wk-run-list article {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Predictions stay off the image. Dashed rings locate tiny boxes without enlarging the true bounds. */
.wk-target-locator {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--osc-sky);
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px var(--osc-night);
  pointer-events: none;
}
.wk-image-inspect-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 5px;
  border-radius: 5px;
  color: var(--osc-cloud);
  background: color-mix(in srgb, var(--osc-night) 72%, transparent);
  opacity: 0;
}
.wk-image-inspect-hint svg {
  width: 16px;
  height: 16px;
}
.wk-review-image:focus-visible .wk-image-inspect-hint {
  opacity: 1;
}
@media (hover: hover) {
  .wk-review-image:hover .wk-image-inspect-hint {
    opacity: 1;
  }
}
.wk-review-image:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -3px;
}
.wk-prediction-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -8px -6px -4px;
}
.wk-image-select {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 44px;
  flex: none;
  cursor: pointer;
}
.wk-image-select input {
  width: 16px;
  height: 16px;
  accent-color: var(--osc-sky);
}
.wk-prediction-link {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  min-height: 44px;
  cursor: zoom-in;
}
.wk-prediction-link strong {
  font-size: 14px;
  font-weight: 500;
}
.wk-prediction-link .wk-confidence {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 12px;
}
.wk-image-caption > span {
  font-size: 12px;
  line-height: 1.5;
}
.wk-image-caption > small {
  font-size: 11px;
}
.wk-image-inspector {
  width: min(1120px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 20px;
}
.wk-image-inspector header {
  padding-right: 28px;
}
.wk-image-inspector header p {
  margin: 8px 0 0;
  font-size: 13px;
}
.wk-inspector-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wk-inspector-controls button {
  min-height: 40px;
}
.wk-inspection-media {
  min-height: 0;
  height: min(62dvh, 620px);
  background: var(--osc-night);
  border-radius: 6px;
  overflow: hidden;
}
.wk-inspection-media svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wk-inspection-predictions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 120px;
  overflow: auto;
}
.wk-inspection-predictions button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.wk-inspection-predictions button[aria-pressed="true"] {
  background: var(--secondary);
  border-color: var(--ring);
}
.wk-inspection-predictions strong {
  font-weight: 500;
}
.wk-inspection-predictions span,
.wk-inspection-predictions small {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.wk-inspection-predictions p {
  font-size: 14px;
  color: var(--muted-foreground);
}
@media (max-width: 600px) {
  .wk-image-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wk-image-select {
    width: 44px;
  }
  .wk-image-inspector {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }
  .wk-inspection-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .wk-inspector-controls button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .wk-image-inspector {
    gap: 8px;
    padding: 12px;
  }
  .wk-image-inspector header p {
    display: none;
  }
  .wk-inspection-media {
    height: calc(100dvh - 180px);
    min-height: 100px;
  }
  .wk-inspection-predictions {
    max-height: 52px;
  }
}

.wk-inspection-outline {
  filter: drop-shadow(0 0 1px var(--osc-night));
}