/*!
 * /**
 * * @file client-rspack.js
 * * @description No code generated
 * * --------------------------------------------------------------------------
 * * ⚡ Rspack Client App (Development)
 * * --------------------------------------------------------------------------
 * * • [   client-entry.js ] ──▶ [■ client-rspack.js ] ──▶ [   client-meteor.js ]
 * *
 * * This file is empty because `meteor.mainModule.client` is not set in package.json.
 * *
 * * ⚠️ Note: This file is autogenerated. It is not meant to be modified manually.
 * * These files also act as a cache: they can be safely removed and will be
 * * regenerated on the next build. They should be ignored in IDE suggestions
 * * and version control.
 * * /
 *
 *
 *
 */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #d9dce1;
  --accent: #3b5bdb;
  --accent-dark: #2f4bc4;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
}

h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0;
}

/* Layout */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  color: var(--accent);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* Panels, cards, forms */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 550;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Styled file picker: visually-hidden input + button-like label. */
.file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-picker-input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-picker-input:disabled + label {
  opacity: 0.55;
  cursor: not-allowed;
}
.file-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.file-picker-row .btn {
  margin-left: auto;
}
.file-picker-names {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
/* Refractive glass layer: reads as another sheet of glass over the page. */
.btn.btn-glass {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.55)
  );
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  border-color: rgba(217, 220, 225, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(16, 24, 40, 0.08),
    0 2px 8px rgba(16, 24, 40, 0.12);
}
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 60%
  );
  pointer-events: none;
}
.btn.btn-glass:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.65)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(16, 24, 40, 0.08),
    0 4px 14px rgba(16, 24, 40, 0.16);
}
.btn.btn-glass:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg);
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}
.btn-small {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.link-danger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--danger);
  cursor: pointer;
}
.link-danger:hover {
  text-decoration: underline;
}

/* Auth */
.auth {
  max-width: 420px;
  margin: 4rem auto;
}

/* Collection hero banner */
.collection-hero {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.collection-hero-text {
  position: relative;
  z-index: 1;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 60%;
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}
.collection-hero-text h1 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.collection-hero-desc {
  margin: 0;
  color: inherit;
  opacity: 0.8;
  max-width: 56ch;
}
.row {
  display: flex;
  gap: 0.5rem;
}

/* Collage */
.collage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* No z-index here: tiles carry their own (0 = behind content, 2 = in
     front) so each ball stacks against the page individually. The container
     itself must never intercept pointer events. */
  pointer-events: none;
}
/* Viewport-fixed field: roams the visible screen and follows scrolling. */
.collage-fixed {
  position: fixed;
}
.collage-tile {
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--border);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  /* Realistic outside: soft large + tight contact shadow for a 3D ball. */
  box-shadow:
    0 12px 22px rgba(16, 24, 40, 0.35),
    0 3px 7px rgba(16, 24, 40, 0.3);
  will-change: transform;
}
.collage-tile:active {
  cursor: grabbing;
}
.card-thumb-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Inset shading + gloss overlay: gives the flat image a spherical look.
   ::after is used because inset box-shadow on an <img> would render
   behind the image content in some browsers. */
.collage-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.38),
    inset 6px 8px 14px rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(
      circle at 30% 28%,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0) 42%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.18) 100%
    );
}
.collage-tile-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  will-change: transform;
}
.collage-tile-empty {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--border);
}
@media (prefers-reduced-motion: reduce) {
  .collage-tile,
  .collage-tile-img {
    animation: none !important;
  }
}

/* Header action menu */
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-icon:hover:not(:disabled) {
  background: var(--border);
}
.btn-icon.dim {
  opacity: 0.35;
}
.overflow {
  position: relative;
  z-index: 25;
  display: inline-flex;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 180px;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.menu-pop-left {
  right: auto;
  left: 0;
}
.menu-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.menu-item:hover {
  background: var(--bg);
}
.menu-item-danger {
  color: var(--danger);
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-title {
  padding-right: 5rem;
  font-weight: 650;
  color: var(--text);
}
.card-title:hover {
  text-decoration: underline;
}
/* Fully-clickable item cards: stretch the title link over the whole card,
   keeping the card's own controls (QR, menu, thumbs) above the overlay. */
.card-clickable .card-title::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-clickable .card-qr {
  /* Keeps position:absolute + top/right corner; z-index alone lifts it
     above the stretched-link overlay. */
  z-index: 1;
}
.card-clickable .overflow,
.card-clickable .card-thumb-btn {
  position: relative;
  z-index: 1;
}
/* Elegant hover indication for clickable cards: soft shadow + accent tint
   instead of the title underline. */
.card-clickable {
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card-clickable:hover,
.card-clickable:focus-within {
  border-color: #bae6fd;
  box-shadow:
    0 3px 10px rgba(16, 24, 40, 0.1),
    0 0 12px rgba(56, 189, 248, 0.25);
}
.card-clickable:hover .card-title,
.card-clickable:focus-within .card-title {
  color: var(--accent-dark);
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .card-clickable {
    transition: none;
  }
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.card-qr {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}
.card-qr .qr {
  margin: 0;
}
.card-qr img {
  display: block;
}

/* Card thumbnail grid */
.card-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.35rem;
}
.card-images-dense {
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.25rem;
}
.card-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.card-images-dense .card-thumb,
.card-images-dense .card-thumb-more {
  border-radius: 4px;
}
.card-thumb-empty {
  background: var(--border);
}
.card-thumb-more {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.card-thumb-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  border-radius: 6px;
  cursor: zoom-in;
}
.card-images-dense .card-thumb-btn {
  border-radius: 4px;
}

/* Mosaic photo gallery (item page): square tiles only, so saved rotations
   can never break the layout. Featured tile spans 2x2, dense flow fills. */
.gallery {
  display: grid;
  gap: 0.5rem;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }
}
.gallery-tile {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-tile:hover img {
  transform: scale(1.03);
}
.gallery-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery:has(> :only-child) > .gallery-tile {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-tile-empty {
  background: var(--border);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-tile img {
    transition: none;
  }
  .gallery-tile:hover img {
    transform: none;
  }
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 12, 16, 0.85);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.lightbox-figure {
  margin: 0;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.lightbox-img {
  max-width: 94vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 94vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-rotate-left,
.lightbox-rotate-right,
.lightbox-save,
.lightbox-cover {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-rotate-left:hover,
.lightbox-rotate-right:hover,
.lightbox-save:hover:not(:disabled),
.lightbox-cover:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-save:disabled,
.lightbox-cover:disabled {
  opacity: 0.6;
  cursor: wait;
}
.lightbox-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.85rem;
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
}
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-rotate-left {
  right: 4.5rem;
  bottom: 1rem;
}
.lightbox-rotate-right {
  right: 1rem;
  bottom: 1rem;
}
.lightbox-save {
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  font-size: 1rem;
}
.lightbox-cover {
  left: 50%;
  transform: translateX(-50%);
  bottom: 4.25rem;
  font-size: 1rem;
}

/* Badges */
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.badge-new {
  background: #eef2ff;
  color: var(--accent-dark);
  border-color: #c7d2fe;
}
.badge-in-progress {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.badge-done {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.badge-archived {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Item page layout */
.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .item-layout {
    grid-template-columns: 1fr;
  }
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* Item page: the item's image balls roam the whole page behind the content.
   Glass panels keep everything legible — all scoped under .item-page. */
.item-page {
  position: relative;
}
.item-page-content {
  position: relative;
  z-index: 1;
}
.item-page .panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.item-title-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.item-title-card h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.item-title-card .muted {
  margin: 0;
}
.item-title-desc {
  margin: 0;
  opacity: 0.8;
  max-width: 56ch;
}

.item-side {
  position: sticky;
  top: 4.5rem;
}

/* QR */
.qr {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.qr img {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.qr-placeholder {
  width: 320px;
  height: 320px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.readonly-url {
  font-size: 0.8rem;
}

/* Files */
.file-list,
.comment-list,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list {
  display: flex;
  flex-direction: column;
}

.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.file:last-child {
  border-bottom: none;
}
.file-comments-wrap {
  flex-basis: 100%;
}
.file-comments-thread {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lightbox-comments {
  width: min(94vw, 560px);
  max-height: 26vh;
  overflow-y: auto;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.file-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.file-thumb-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  border-radius: 8px;
  cursor: zoom-in;
}
.file-thumb-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-thumb-empty {
  background: var(--bg);
}
.file-thumb-doc {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.file-name {
  font-weight: 550;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Comments */
.comment {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child {
  border-bottom: none;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-body {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-left: 2px solid var(--border);
  margin-left: 0.4rem;
  display: flex;
  flex-direction: column;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.8rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.timeline-created::before {
  background: var(--accent);
}
.timeline-status::before {
  background: #f59e0b;
}
.timeline-upload::before {
  background: #10b981;
}
.timeline-comment::before {
  background: #06b6d4;
}
.timeline-remove::before {
  background: var(--danger);
}

/* Mod root pattern: hero header + title */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tags & chips */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
}
.chip a {
  color: inherit;
}
.chip-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
  cursor: pointer;
}
.chip-x:hover {
  color: var(--danger);
}
.chip-btn {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip-btn:hover {
  border-color: var(--accent);
}
.chip-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
}
.tags-input input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.35rem 0.1rem;
  flex: 1;
  min-width: 120px;
  color: var(--text);
}
.tags-filter {
  margin-top: 0.5rem;
}

/* Children badge */
.children-mark {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
}

/* Modal / confirm dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  max-width: 420px;
  width: calc(100% - 2rem);
}
.modal-message {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.modal-actions {
  justify-content: flex-end;
}

/* Searchable select */
.search-select {
  position: relative;
}
.search-select .row {
  align-items: center;
}
.search-select .row input {
  flex: 1;
  width: auto;
}
.search-select-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 120;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.search-result:hover,
.search-result.highlighted {
  background: rgba(0, 0, 0, 0.05);
}
.search-result.selected {
  background: var(--accent);
  color: #fff;
}
.search-result-muted {
  cursor: default;
  color: var(--muted);
  font-size: 0.85rem;
}
.search-result-code {
  font-family: var(--mono-font, monospace);
  font-size: 0.75rem;
  opacity: 0.7;
}

/*# sourceMappingURL=main.css.map*/