
.gu-modal-box {
  max-width: 560px;
}

.gu-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gu-modal-body::-webkit-scrollbar {
  width: 4px;
}
.gu-modal-body::-webkit-scrollbar-thumb {
  background: rgba(var(--black-color-rgb), 0.08);
  border-radius: 2px;
}

.gu-upload-area {
  position: relative;
  width: 100%;
  min-height: 180px;
  border: 1.5px dashed rgba(var(--black-color-rgb), 0.12);
  border-radius: 0.85rem;
  background: rgba(var(--black-color-rgb), 0.02);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}

.gu-upload-area:hover {
  border-color: rgba(var(--primary-color-rgb), 0.55);
  background: rgba(var(--primary-color-rgb), 0.05);
}

.gu-upload-area.is-drag {
  border-color: rgba(var(--primary-color-rgb), 0.8);
  background: rgba(var(--primary-color-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
}

.gu-file-input {
  display: none;
}

.gu-upload-placeholder {
  min-height: 180px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.gu-upload-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
}

.gu-upload-texts {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gu-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.gu-upload-hint {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  font-weight: 500;
}

.gu-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gu-preview-media {
  width: 100%;
  background: var(--color-neutral-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 340px;
  overflow: hidden;
  border-radius: 0.35rem 0.35rem 0 0;
}

.gu-preview-media img,
.gu-preview-media video {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.gu-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(var(--black-color-rgb), 0.03);
  border-top: 1px solid rgba(var(--black-color-rgb), 0.06);
}

.gu-preview-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 8px;
  background: rgba(var(--black-color-rgb), 0.06);
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-gray-700);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.gu-preview-name {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--color-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.gu-preview-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.5rem;
  padding: 4px 8px;
  color: var(--color-gray-500);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.gu-preview-remove:hover {
  color: var(--danger-color-light);
  border-color: rgba(var(--danger-color-light-rgb), 0.25);
  background: rgba(var(--danger-color-light-rgb), 0.06);
}

.gu-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gu-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gu-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.01em;
}

.gu-label-hint {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gu-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  background: var(--color-neutral-off-white);
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.gu-input::placeholder {
  color: var(--color-neutral-border-light);
  font-weight: 400;
}

.gu-input:focus {
  border-color: var(--primary-color);
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.gu-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.45;
}

.create-card-body.gu-body {
  padding: 1.25rem;
  align-items: stretch;
  justify-content: flex-start;
}

.gu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.7rem;
}

.gu-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(var(--black-color-rgb), 0.06);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gu-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--black-color-rgb), 0.12);
  box-shadow: 0 8px 20px -8px rgba(var(--color-slate-900-rgb), 0.25);
}

.gu-tile-media {
  position: absolute;
  inset: 0;
}

.gu-tile-media img,
.gu-tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gu-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  background: rgba(var(--black-color-rgb), 0.28);
  pointer-events: none;
}

.gu-tile-play-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--black-color-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--white-color-rgb), 0.25);
}

.gu-tile-kind {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 7px;
  background: rgba(var(--black-color-rgb), 0.55);
  color: var(--white-color);
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gu-tile-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--black-color-rgb), 0.55);
  color: var(--white-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gu-tile:hover .gu-tile-remove {
  opacity: 1;
}

.gu-tile-remove:hover {
  background: rgba(var(--danger-color-light-rgb), 0.9);
}

.gu-tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.65rem 0.55rem;
  background: linear-gradient(
    to top,
    rgba(var(--black-color-rgb), 0.82) 0%,
    rgba(var(--black-color-rgb), 0) 100%
  );
  color: var(--white-color);
  pointer-events: none;
}

.gu-tile-title {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gu-tile-caption {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.88;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gu-tile--add {
  all: unset;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  border: 1.5px dashed rgba(var(--black-color-rgb), 0.14);
  background: rgba(var(--black-color-rgb), 0.02);
  color: var(--color-gray-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  font-family: inherit;
}

.gu-tile--add:hover {
  border-color: rgba(var(--primary-color-rgb), 0.55);
  background: rgba(var(--primary-color-rgb), 0.06);
  color: var(--text-color);
}

.gu-tile-add-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gu-tile-add-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
